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]
XPath query and xmlns attribute

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">
<FindMembershipResponse xmlns="http://www.msn.com/webservices/AddressBook">

I'm trying to use an XPath query as follows:


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