Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: help with selectSingleNode

From: "Developer" <wanderer@-------.----.--->
To: 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
>
>
>
>
>
>
>
>
>




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent