Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: help with selectSingleNode >Thread Next - Re: help with selectSingleNode Re: help with selectSingleNodeTo: NULL Date: 6/4/2004 10:05:00 AM I think what I needed was this:
pDoc->SetProperty(_T("SelectionLanguage"), _T("XPath"));
pDoc->SetProperty(_T("SelectionNamespaces"),
_T("xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:ingr='http://www.intergraph.com/geomedia/gml'
xmlns:gml='http://www.opengis.net/gml'"));
"Steven Cheng[MSFT]" <v-schang@o...> wrote in message
news:rUEPrpfSEHA.2160@c......
> Hi Developer,
>
> In fact, I've call the "selectSingleNode()" twice in my demo code, have
you
> seen them? In the second call , it is like
>
> pSubNode =
> pNode->selectSingleNode("//xs:element/xs:complexType/xs:sequence");
>
> the path "//xs:element/xs:complexType/xs:sequence" is not from the top
> level of the document , it is from the root of the
> pNode element, you can compare it together with the first call of the
> "selelctSingleNode" method which used to get the pNode elemtent. In
> addition, I've also tested that if I use the following path , it will
also
> work:
>
> pSubNode = pNode->selectSingleNode("//xs:sequence");
>
> The "//xs:sequence" path seems means it will search for a child node whose
> name is "xs:sequence" under the curent node.
>
> Please check out the above things, if you still have anything unclear,
> please feel free to post here. Thanks.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
>
>
>
>
>
>
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
