Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Trouble 1

Status
Not open for further replies.

Brian56

Programmer
May 29, 2003
66
CA
Hello,

Books tell me that this can be done but do not explain how.

I want to load HTML tags with my XML data.

For instance a textNode with HTML content inside.

Copied from my code:

<xmlNode>
Celtic <font color=&quot;#00FF00&quot; size=&quot;+7&quot;>Rules</font> Europe!
</xmlNode>

I have tried dozens of variations of the above without success.

Thanks,

Brian
 
Put it all in a CDATA section. The format looks like:
<![CDATA[blahblahblah]]>

This will prevent XML from trying to parse your HTML.

E.G.,
<xmlNode>
<![CDATA[Celtic <font color=&quot;#00FF00&quot; size=&quot;+7&quot;>Rules</font> Europe!]]>
</xmlNode>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top