XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] XPath query and xmlns attribute

Ryan

See http://www.dpawson.co.uk/xsl/sect2/N5536.html especially numbers 13 and 
23.

Joe


>From: Ryan Homer <hzc@mac.com>
>To: xml-dev@lists.xml.org
>Subject: [xml-dev] 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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS