Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - BTS 2002 Map XPATH Manipulation? [Thread Next] Re: BTS 2002 Map XPATH Manipulation?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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
