Subject: Ecsaped XML
Posted By: dkb Post Date: 10/27/2003 11:20:21 AM
Is there a way of adding xml in an xml document, but so that the document will not consider the text within certain elements to be XML?

for example

<ABC><NOTXML></NOTXML><ABC>

I am looking for a means of holding a html (not well formed) document within an xml document.

Thanks



Reply By: planoie Reply Date: 10/27/2003 12:00:14 PM
You can escape XML text in the same way as you would escape HTML for display in a browser:

<ABC>&lt;NOTXML&gt;&lt;/NOTXML&gt;<ABC>

Peter
Reply By: pgtips Reply Date: 10/28/2003 7:29:23 AM
or you can put it in a CDATA section
<ABC><![CDATA[<NOTXML></NOTXML>]]></ABC>

Go to topic 5774

Return to index page 1018
Return to index page 1017
Return to index page 1016
Return to index page 1015
Return to index page 1014
Return to index page 1013
Return to index page 1012
Return to index page 1011
Return to index page 1010
Return to index page 1009