Quantcast
Channel: When parsing Atom XML feeds, how should conflicting CDATA and entity escaped elements be handled? - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Alf Eaton for When parsing Atom XML feeds, how should conflicting...

Both opinions are correct: The title encoded as text is Johnson & Johnson.The title encoded as HTML is Johnson &amp; JohnsonThe title encoded as HTML in XML is <![CDATA[Johnson &amp;...

View Article



Answer by Quentin for When parsing Atom XML feeds, how should conflicting...

Content between CDATA markers is not parsed for entities of tags, so the parsed value of the text node is Johnson &amp; Johnson.Note that the attribute says type="html", so it should then be parsed...

View Article

Answer by Mike for When parsing Atom XML feeds, how should conflicting CDATA...

CDATA is character data - completely ignored by the parser between . It has to be since xml cannot handle &. Therefore, there is no "double encoding" - any parser skips to the close tag, ignoring...

View Article

When parsing Atom XML feeds, how should conflicting CDATA and entity escaped...

How should an Atom feed parser handle the following line of XML in a feed:<title type="html"><![CDATA[Johnson &amp; Johnson]]></title>For the sake of the discussion, lets assume...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images