I have a root element with the following xmlns:
<Status xmlns="http://www.tandberg.com/XML/CUIL/2.0"
product="TANDBERG Codec" version="1.0.0">
It has no short name for the xmlns - yet I need to query the document for information using xpath. I am unable to edit the xml document itself.
I'm using a variety of parser and some are able to handle the xmlns without a short name and some are not.
The XPath below will give me the data I require - the question is - should xpath break in the above scenario by design?
//*[local-name()='Hardware']/*[local-name()='Temperature']
IE: Notepad++ will NOT handle it without adding xmlns:xs="..."
The following website DOES handle it and gives me what I expect.
http://www.xpathtester.com/xpath
Which is the correct implementation?