The content returned in the HTTP response through
url
is not valid XML, due to some issues with the metadata part of it called DOCTYPE. You can download the content in question without parsing it and review, to see what's wrong with it. Note that DOCTYPE can be prescribed with one or more XML
external entities which could be downloaded separately and might be not available to your parser, by some reason.
To understand what's wrong, you should lean the XML standard in general and DOCTYPE declarations (especially just the syntax). Please see:
http://en.wikipedia.org/wiki/Document_type_definition[
^],
http://www.w3.org/TR/2004/REC-xml11-20040204/#NT-doctypedecl[
^],
http://www.w3schools.com/dtd/dtd_entities.asp[
^],
http://www.w3schools.com/DTD/dtd_intro.asp[
^].
—SA