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

   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> . The second solution to avoid tag using the escape of XML: & amp; lt; < / Code> and & amp; gt; .


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -