kroimon/omnixml

Close brackets and CDATA nodes

Opened this issue · 0 comments

Hello,

First of all thanks very much for omnixml, no doubt a very good way to deal 
with XML from Delphi. I found a problem when retrieve some Javascript code from 
a CDATA node.

If we save in a CDATA node something like the below Javascript line:

foo([['Hello', 'Brackets']]);

The Javascript code is saved OK, but, when we use the "GetNodeCData" function 
from the "OmniXMLUtils" unit the result of such function is this:

foo([['Hello', 'Brackets');

** Note how the two end brackets are removed by "GetNodeCData" function.

I am using the latest OmniXML version which is available when I write this 
issue, installed in Delphi XE2 and running Microsoft Windows 8.1.

Can anybody help me in some manner?

Thanks in advance and thanks for OmniXML.

Original issue reported on code.google.com by davidesp...@gmail.com on 1 Jul 2015 at 10:39