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 & JohnsonThe title encoded as HTML in XML is <![CDATA[Johnson &...
View ArticleAnswer 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 & Johnson.Note that the attribute says type="html", so it should then be parsed...
View ArticleAnswer 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 ArticleWhen 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 & Johnson]]></title>For the sake of the discussion, lets assume...
View Article