* STech wrote in microsoft.public.dotnet.xml:
I have an instance of an XmlDocument. I am using the Load method to load
some xml data but get the error message "Reference to undeclared parameter
entity". Here is the xml data
<data>
<items>
<item>This is a test
</item>
<item>Hello World
</item>
</items>
</data>
It seems whatever you are using to post to this newsgroup, it removed
the problem, the above does not contain references to entities.
If I remove the the data loads fine. How can I tell the loader to not
complain about any undeclared entities....ie simply load the document.
You need to declare the entities in the internal or external subset,
i.e., you need to have a <!DOCTYPE ...> declaration. If you have one
the parser should only complain when validating the document. If there
is no document type declaration and the document is ill-formed, and thus
correctly rejected by XML parsers.
--
Björn Höhrmann · mailto:bj****@hoehrmann.de ·
http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 ·
http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 ·
http://www.websitedev.de/