[xml] parser add '0x0a' around CDATA content, why?



Sirs,
 
I read a xml document and found that:
 
after parsing, the contents in CDATA sections have been added a char, '0x0a' at head and tail.
e.g:
in 1.xml , a CDATA section like:
<![CDATA[<table>]]>
 
parse it, then read using
xmlNodeListGetString(doc,cur,1);
the CDATA string appears in memory as:
<![CDATA[
<table>
]]>
 
Why the parser add '0x0a',
How to prevent xml parser from doing this?
or can I choose whether the parse add or not?
 
regards


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]