[Home] [By Thread] [By Date] [Recent Entries]
Ryan See http://www.dpawson.co.uk/xsl/sect2/N5536.html especially numbers 13 and 23. Joe >From: Ryan Homer <hzc@m...> >To: xml-dev@l... >Subject: XPath query and xmlns attribute >Date: Thu, 11 Jan 2007 08:40:12 -0500 > >Hi everyone! > >I am programming on OS X (Cocoa). I have an NSXMLDocument object with an >XML document that looks like the following: > ><?xml version="1.0" encoding="utf-8"?> ><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >xmlns:xsd="http://www.w3.org/2001/XMLSchema"> ><soap:Header> >. >. >. ></soap:Header> ><soap:Body> ><FindMembershipResponse xmlns="http://www.msn.com/webservices/ >AddressBook"> ><FindMembershipResult> >. >. >. ></FindMembershipResult> ></FindMembershipResponse> ></soap:Body> ></soap:Envelope> > > >I'm trying to use an XPath query as follows: > >//soap:Body/FindMembershipResponse > >but it returns no elements. However, it will work if there is no xmlns >attribute. Is there something I'm missing in the syntax of the XPath query >to accommodate this? I though that the attribute should not matter and >should be ignored. > >Thanks in advance. > > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



