OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] MSXML4 : how to select a element with namespace prefix

[ Lists Home | Date Index | Thread Index ]

> 
> Consider this sample...
> 
> <?xml version="1.0"?>
> <alk:root xmlns:alk="http://foo"; xmlns:xyz="http://goo";>
> 	<xyz:bar>somevalue</xyz:bar>
> </alk:root>
> 
> Using MSXML4 how to select the element "xyz:bar"
> 
> Without namespaces, i could do it simply via the 
> "selectSingleNode" method. How to do it when namespaces are involved?
> 

Take a more careful look at the API, you'll find you can call
setProperty to set a property called "selectionNamespaces".

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com 





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS