Hi,
If you skip the DTD, any entity references (except for <, >,
' and ") are rejected during XmlDocument.Load().
If you don't care such buggy document, you can try
while (!reader.EOF)
doc.AppendChild (doc.ReadNode (reader));
which does not reject unresolved entity references (funny, but
this is what .net System.Xml.dll does).
Atsushi Eno
[EMAIL PROTECTED] wrote:
> I'm trying to turn off entity resolution using XmlDocument as I don't
> have a DTD and I'm getting "System.Xml.XmlException: Cannot resolve
> entity without DTD". I can't see an explicit "ResolveEntity" property I
> could set to off. Any ideas? Is there a mono specific way of doing
> this?
>
> Thanks
> Colin.
> _______________________________________________
> Mono-list maillist - [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-list
>
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list