Next in thread → Next in month →

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

From
Michael Kay <>
To
'Anuga Laxmi Kanth Reddy' <>,
Date
2003-02-21T15:06:06
ID
<001201c2d9ba$c27c5db0$6401a8c0@pcukmka>
Thread
RE: [xml-dev] MSXML4 : how to select a element with namespace prefix
> 
> 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: 
work: 
Next in thread → Next in month →