Querying the xml with namespace but no prefix

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Ive below xml.

<span style="border-collapse:collapse; font-family:arial,sans-serif; font-size:13px <?xml version=1.0 encoding=utf-8?><soap:Envelope xmlns:soap= http://www.w3.org/2003/05/soap-envelope" target="_blank" style="color:#0000cc http://www.w3.org/2003/05/soap-envelope
xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance" target="_blank" style="color:#0000cc http://www.w3.org/2001/XMLSchema-instance xmlns:xsd= http://www.w3.org/2001/XMLSchema" target="_blank" style="color:#0000cc http://www.w3.org/2001/XMLSchema ><soap:Body><GetDateTimeResponse
xmlns= http://www.tribold.com/integration/launch" target="_blank" style="color:#0000cc http://www.tribold.com/integration/launch ><GetDateTimeResult>2011-06-17T13:01:49.487</GetDateTimeResult></GetDateTimeResponse></soap:Body></soap:Envelope>

<span style="border-collapse:collapse; font-family:arial,sans-serif; font-size:13px but the xpath <span style="border-collapse:collapse; font-family:arial,sans-serif; font-size:11px /soap:Envelope/soap:Body/GetDateTimeResponse/GetDateTimeResult
doesnt return any value.

<span style="border-collapse:collapse; font-family:arial,sans-serif; font-size:11px little bit of history here:
Ive got it working by stripping namespaces. Works absolutely fine.
But I also need to get it working without stripping the namespaces.
I#m getting all the namespaces dynamically and then tried to append that to namespacemanager while calling navigator.select("xpath",namespacemanager)

it returns null. What am I missing here? is it to do with prefix?

Please help

Kavya <hr class="sig Peace, Kavya

View the full article
 
Back
Top