CDATA in XML
Paul Timms
8-31-18
I am parsing some XML data which contains a !CDATA section. This section is not being parsed correctly. For example, with this XML:

<Product>
<Description>
<![CDATA[EX BK A4+ PLAIN PURPLE 40PG BX50]]>
</Description>
</Product>

If I use this:
adata = XMLGet(xdata,"/Product/Description");

adata returns ]]>

If I use XMLCountChildren on "Product/Description" it returns 0.

So, I don't think Standard ERP is capable of parsing CDATA sections. Is that correct?
Paul Timms
7-24-18
Well it seems that even this forum doesn't like it! Let's try this, with curly brackets rather than < and >.

{Product}
{Description}
{![CDATA[SLAZENGER V200 PANTHER BAT S/HANDLE]]}
{/Description}
{/Product}
Tomas J.
7-25-18
Hello,

No, Standard ERP does not support CDATA sections.

Regards,

Hansaworld support
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
David Delač
Hi Piotr, The log entry:
2024-12-14 08:40:43 0.000 CallHal(IsHansaWorldCustomer) appears because the server is running with the verbosity=debug-detailed setting in its parameters.txt file. Thi...
09:43 16 Dec 2024
Brittany McGrath
Hi Vaughn, I can confirm this has been fixed now and is live in Standard ERP 2024-11-20 Version: 85556786. Thank you. ...
10:04 10 Dec 2024