Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Xpath & namespaces, How to use namespace in xpath?

namespace namespaces xpath
0
Posted

Xpath & namespaces, How to use namespace in xpath?

0

I have a problem with the XML Xerces parser when namespaces are used. If I have just one defined namespace in the root of the document, and I use a Xpath sentence to find one of the elements in this namespace, the parser works. But if there are more than one defined namespaces en the root, the same Xpath sentence doesn´t find any element! Here is the xpath and xml: When I search for: //item/adlcp:datafromlms or //item/datafromlms it doesn’t work.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123