Groups | Blog | Home
all groups > dotnet xml > january 2005 >

dotnet xml : Reference to undeclared parameter entity


STech
1/25/2005 3:03:02 PM

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>

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.

Bjoern Hoehrmann
1/26/2005 2:19:18 AM
* STech wrote in microsoft.public.dotnet.xml:
[quoted text, click to view]

It seems whatever you are using to post to this newsgroup, it removed
the problem, the above does not contain references to entities.

[quoted text, click to view]

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:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
AddThis Social Bookmark Button