Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: BTS 2002 Map XPATH Manipulation?

From: "Oleg Tkachenko [MVP]" <oleg@--_!----!_------!---------.--->
To: NULL
Date: 8/6/2004 11:41:00 PM
Steve Yetter wrote:

> We are working on a tool to automatically map elements that have the same
> name, cardinality  and datatype. The tool is being written in C#.  We would
> like to use the XPathDocument, XPathNavigator, and XPathNodeIterator classes
> to hold and  process the documents.  We have run into problems when trying
> to apply this expression, "*[//Schema]"  to the XML extract below. It
> returns an empty node set:
> 
> <Schema name="ADT_A01" b:BizTalkServerEditorTool_Version="1.5"
> b:root_reference="ADT-A01" b:standard="XML"
> xmlns="urn:schemas-microsoft-com:xml-data"

Sure. Read about default namespace and XPath. In short - you should use 
some dummy namespace prefix, bound to 
"urn:schemas-microsoft-com:xml-data" namespace. See more info in 
XPathNavigator.Select(XPathExpression) method documentation at MSDN.

-- 
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com


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