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
Hello, Thank you very much for the help. Best Regards, Daniel...
07:07 28 Apr 2024
Andis Blicāns, Grasko
Hi, We have client using 8.5 2021-09-26 (build 85400383). The fields &quot;Max Web Users&quot; and &quot;Max Sessions&quot; ar blank. Server is closing itself almost every day. Message in hansa....
15:52 26 Apr 2024