More XML Problems - Undeclared Entity 'nbsp'

Posted by Gogster on Stack Overflow See other posts from Stack Overflow or by Gogster
Published on 2010-05-12T08:41:49Z Indexed on 2010/05/12 8:44 UTC
Read the original article Hit count: 261

Filed under:
|
|

I'm getting the error:

Line 49: xml = r.ReadToEnd(); Line 50: Line 51: System.Xml.Linq.XDocument xmlDoc = System.Xml.Linq.XDocument.Parse(xml); Line 52:
Line 53: var query = from p in xmlDoc.Descendants("member")

On my XML. When I run the code to generate the XML in an empty page, it runs without error, if I call the code within my webpage it throws this error. The only 'nbsp' on the page is a doctype declaration at the top of the XSLT:

<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>

I'm at a loss as to where this error is coming from and I am looking for suggestions please!

Thanks.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about xslt