> 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
[EMAIL PROTECTED]



                                                                                
                                                
                      Arno Schatz                                               
                                                
                      <[EMAIL PROTECTED]        To:       [EMAIL PROTECTED]     
                                      
                      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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to