Generating Cdata In Xml

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ssunila
    New Member
    • Aug 2007
    • 4

    Generating Cdata In Xml

    Hi
    I am genearting an xml files using a java application. In the xml i need to enclose some text in CDATA tag. I tried using java code , but it doesn't appear in the correct format in xml
    <![CDATA[" and ends with "]]>"

    I am getting a format lime [CDATA : text ]

    What method should i use to generate the xml in the correct format ?
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Originally posted by ssunila
    Hi
    I am genearting an xml files using a java application. In the xml i need to enclose some text in CDATA tag. I tried using java code , but it doesn't appear in the correct format in xml
    <![CDATA[" and ends with "]]>"

    I am getting a format lime [CDATA : text ]

    What method should i use to generate the xml in the correct format ?
    What is the java code you tried using? There's probably a minor mistake in that, because normally you shouldn't have any problems with writing XML files from Java. I myself had to do so just a few days ago and it works fine.

    Greetings,
    Nepomuk

    Comment

    Working...