DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7761>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7761 Child list of parsed entity is empty Summary: Child list of parsed entity is empty Product: Xerces2-J Version: 2.0.1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] For an XML document below, <?xml version='1.0'?> <!DOCTYPE root [ <!ELEMENT root ANY> <!ENTITY ent 'foo'> ]> <root></root> Output of following piece of code with Xerces2.0.1 is <snip> Node node = document.getDoctype().getEntities().item(0); Node child = node.getFirstChild(); String entName = node.getNodeName(); System.out.println("First child of entity '" + entName + "': " + child); </snip> Output: First child of entity 'ent': null But as per DOM Specification, http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-527DCFF2 <snip> When the replacement value is available, the corresponding Entity node's child list represents the structure of that replacement text. Otherwise, the child list is empty. </snip> As the replacement value is available, I expect the child of entity to contain text value. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
