Jump to content

HTML Code in XML

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Chan

Chan

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 204 posts
I have an XML file that I'm using and would like to include HTML code in it. When I do include HTML code the XML file is no longer valid and incorrect values are displayed. Can anyone tell me how I can embed HTML code in my XML files?

#2
hoser2001

hoser2001

    Programmer

  • Members
  • PipPipPipPip
  • 173 posts
<node>
<myfield> <![CDATA[ <p>some text<br>more here</p> ]]> </myfield>
</node>