[xml] Xpath namespaces



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:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instancexmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/
xmlns:xsd='http://www.w3.org/2001/XMLSchemasoap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:soap='http://schemas.xmlsoap.org/soap/envelope'>
  <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]