Property http://apache.org/xml/properties/dom/current-element-node 2003-02-11 - By sandygao@(protected)
> Is this intended behaviour/bug?
As the name of the property suggests, it only returns *element* node.
> How do i get hold of comment nodes while parsing?
Get the current element node, and query it's child nodes.
HTH, Sandy Gao Software Developer, IBM Canada (1-905) 413-3255 sandygao@(protected)
Arno Schatz <list@(protected) To: xerces-j-user@(protected) .apache.org de> cc: Subject: Property http://apache .org/xml/properties/dom/current-element-node 02/11/2003 11:04 AM Please respond to xerces-j-user
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@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|