Hi,
I have a problem with the default namespace and an xpath query. I know I have to set the namespace declaration as described in the faq.
This works great for nodes, but unfortunately not for attributes.
The following xpath query fails on the xml file:
/ox:BinaryCollaboration/ox:Role/@ox:name
but this one is successful:
/ox:BinaryCollaboration/ox:Role/@name
I use the selectNodeList() method and add the namespace in the third parameter.
My problem is that the xml file sometimes has a default namespace, and sometimes not.
Do you know how I can set the default namespace for the attributes? Or do you have another solution for my problem ?
Any help is apprectiated.
Marcel
