Menu

identation of cdata sections

2006-10-06
2013-05-20
  • Ronald Posthumus

    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>

     
    • Ronald Posthumus

      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...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.