[Mono-dev] External entity resolution

Konstantin Triger kostat at mainsoft.com
Thu Nov 17 06:32:02 EST 2005


Hello Eno,

 

We fail to load the following xml:

 

<!DOCTYPE doc [

<!ENTITY e PUBLIC ";!*#@$_%" "100.xml">

<!ELEMENT doc (#PCDATA)>

]>

<doc></doc>

 

The reason is that we try to set the entity content when it's declared
and not when it's referenced.

The attached patch fixes the issue.

 

BTW, do we need to resolve it before it's referenced? I guess no... So
the LiteralEntityValue should be empty and we need to create a XmlReader
based on SystemId and read the data when requested...

 

Regards,

Konstantin Triger

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051117/b381c670/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dtd.diff
Type: application/octet-stream
Size: 2859 bytes
Desc: dtd.diff
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051117/b381c670/attachment.obj 


More information about the Mono-devel-list mailing list