You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Kapil Khashu <KK...@OLF.COM> on 2005/04/13 00:17:44 UTC

Xpath Expression with namespace

Hi all,
Not sure if this a bug or if I am doing something wrong. I am wrapping
Xerces DOM object with XercesDocumentWrapper and using this for xpath
expressions.
This works fine when I am not using namespaces, however it fails with
namespaces. I tried to debug this and found that call to  
XercesAttrWrapper::getLocalName() returns an empty string and hence fails to
create a map.This problem does not occur if Xpath expressions ( with
namespaces) are applied using XalanDocument. I verified this using one of
the examples.
Thanks
Kapil 


© 2005 OpenLink Financial 

Copyright in this message and any attachments remains with us.  It is
confidential and may be legally privileged.   If this message is not 
intended for you it must not be read, copied or used by you or 
disclosed to anyone else.   Please advise the sender immediately if 
you have received this message in error.

Although this message and any attachments are believed to be free of 
any virus or other defect that might affect any computer system into 
which it is received and opened, it is the responsibility of the 
recipient to ensure that it is virus free and no responsibility 
is accepted by Open Link Financial, Inc. for any loss or damage in any 
way arising from its use.



Re: Xpath Expression with namespace

Posted by da...@us.ibm.com.
> Hi all,
> Not sure if this a bug or if I am doing something wrong. I am wrapping 
Xerces DOM object
> with XercesDocumentWrapper and using this for xpath expressions.
> This works fine when I am not using namespaces, however it fails with 
namespaces.
> I tried to debug this and found that call to 
XercesAttrWrapper::getLocalName() returns
> an empty string and hence fails to create a map.This problem does not 
occur if Xpath
> expressions ( with namespaces) are applied using XalanDocument. I 
verified this using
> one of the examples.
> Thanks
> Kapil 

You need to ask this question on the Xalan-C user list, not on the 
Xerces-C list.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org