You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Arno Schatz <li...@arnoschatz.de> on 2003/02/11 17:04:09 UTC
Property http://apache.org/xml/properties/dom/current-element-node
Hi,
While testing the above property, I realised, that getProperty("
http://apache.org/xml/properties/dom/current-element-node") will never return a node
which is does not have an begin/end tag. For example, for a text node there is only the
the XNIDocumentHandler call
comment(XMLString text, Augmentations augs)
The Method getProperty(" http://apache.org/xml/properties/dom/current-element-node")
always returns 'fCurrentNode', but the variable fCurrentNode does not get changed in
those XNIDocumentHandler-methods which create a Node in a single call like comments.
For example, in the Method
AbstractDOMParser.comment(XMLString text, Augmentations augs) throws XNIException {
The new Node is added by
fCurrentNode.appendChild(comment);
while fCurrentNode remains unchanged.
Is this intended behaviour/bug? How do i get hold of comment nodes while parsing?
thanks,
Arno
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org