View Single Post
Old 11-19-2012, 02:34 PM   PM User | #6
Dormilich
Senior Coder

 
Dormilich's Avatar
 
Join Date: Jan 2010
Location: Behind the Wall
Posts: 2,860
Thanks: 9
Thanked 290 Times in 286 Posts
Dormilich is on a distinguished road
I don’t think it’s a good idea to manually remove an XML namespace, they are there for a reason.

to the original problem: the XPath so far is correct, but the od namespace must be known to the XPath interpreter (which obviously depends on the interpreter used, XSLT is different from SimpleXML is different from DOMDocument, etc.)

the return type of the XPath expression is usually a string for primitive data types (maybe except for the XPath functions), though that may also depend on the interpreter used.
__________________
please post your code wrapped in [CODE] [/CODE] tags
Dormilich is offline   Reply With Quote