xsd - Simple XML Question -
I am creating XML on runtime whose schema
& lt; Items & gt; & Lt; Content & gt; Hi & lt; / Content & gt; & Lt; / Item & gt; The problem is that when I give some HTML content to this tag
. The second solution to avoid tag using the escape of XML:Hi & lt; Strong> & Lt; / Content & gt; & Lt; / Item & gt;
">
The correct answer is not to embed the tag in XML. XML should only define the data, the parser should keep it in the correct markup, eg. <00> All items in <00>
& amp; lt; < / Code> and& amp; gt;.
Comments
Post a Comment