Howdi there !
first thing's first, Happy new year to everyone!
I have a problem with my XPath syntax I believe. I have been able to perform queries over XMLs quite easily so far, But now I stumble upon a problem, and it happens that when I have namespaces defined in my xmls, I can't search for xml tags in the 'regular' way.
let me detail the problem a little more; If I have an xml like this...
I have already implemented
java code to succesfully make queries using XPath, like this...
Assume the code above works Fine
as long as the XPath Expression is correct. (The Xpath expression is the first argument of the executeXpath method), But in this case it does Not work because I'm using a nameSpace. And I'm getting the following Exception:
javax.xml.transform.TransformerException: A node test that matches either NCName:* or QName was expected.
I don't know how to make it work, What am I missing?
Please Help me,
Sincerely,
Jose