[Mono-devel-list] [PATCH] EntityReference inside Text element does not actually references Entity value.
Boris Kirzner
borisk at mainsoft.com
Wed Jan 14 09:36:52 EST 2004
Description of Problem:
If there is an |EntityReference| inside the Text element content, the
value of this Entity referenced is omitted while building a document.
Steps to reproduce the problem :
1. Create DTD file defining some entities.
2. Create XML file referencing the DTD, with Entity ||
<http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-527DCFF2>node inside
and text element referencing this entity.
3. Load XML document into XmlDocument
4. Inspect element children structure.
Actual result :
EntityReference has no children.
Expected result :
The subtree of the |EntityReference| node is a text element holding
Entity value.
Enclosed is a small test case and a patch.
Thank you in advance,
Boris Kirzner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040114/41a52e44/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: XmlEntityReference.cs.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040114/41a52e44/attachment.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: staff.xml
Type: text/xml
Size: 593 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040114/41a52e44/attachment.xml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040114/41a52e44/attachment-0001.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Class1.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040114/41a52e44/attachment-0001.pl
More information about the Mono-devel-list
mailing list