[xml] Xpath namespaces
- From: "Glenn MacGregor" <Glenn MacGregor sonos com>
- To: <xml gnome org>
- Subject: [xml] Xpath namespaces
- Date: Tue, 21 Aug 2007 16:16:33 -0400
Hi
All,
I am using libxml2
2.6.23 for a soap response parser. I also use the builtin xpath stuff to get
nodes and such. Everything has been working fine until now, I have come across a
soap response which I can not get xpath to work:
<?xml
version="1.0" encoding="UTF-8"?>
<soap:Body>
<getUIDResponse xmlns='http://www.hidden.com/Services/1.0'>
<getUIDResult>1111122</getUIDResult>
</getUIDResponse>
<soap:Body>
</soap:Envelope>
I an using
xmlXPathRegisterNS to register the soap namespace, but in the getUIDResponse the
default namespace is changed. I assume I have to register that (http://www.hidden.com/Servicecs/1.0)
as the default at some point.
Is this possible,
how would I do this action?
Thanks
Glenn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]