I use cdata sections to store information. When such a section is parsed, the identations are different from what is in the xml. In the example below the parsed data contains 1 tab idenatation becuase the cdata section is idented with one tab. If this example is deeper in the tree then more tabs are added to the retreived data. Is there a simple solution for this??
<ELEMENT>
<![CDATA[
if(x==y)
{
//to do
}
]]>
<\ELEMENT>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The formatting of the example went wrong, the cdata section should be idented with one tab. The formatting of the if-statement should also be idented...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use cdata sections to store information. When such a section is parsed, the identations are different from what is in the xml. In the example below the parsed data contains 1 tab idenatation becuase the cdata section is idented with one tab. If this example is deeper in the tree then more tabs are added to the retreived data. Is there a simple solution for this??
<ELEMENT>
<![CDATA[
if(x==y)
{
//to do
}
]]>
<\ELEMENT>
The formatting of the example went wrong, the cdata section should be idented with one tab. The formatting of the if-statement should also be idented...