SelectSingleNode and Namespace
- From: "Jonathan" <Jonathan@xxxxxxxxxxxxxxx>
- Date: Mon, 18 Apr 2005 15:14:16 +0200
<HomedResources
xmlns=http://schemas.microsoft.com/RtcServer/2002/11/dbimpexp
Version="3">
<HomedResource
UserAtHost="PBoul@xxxxxxx"
Enabled="1" VersionPermission="10"
VersionContact="25"
DisplayName="Boullay,
Peter" Email="PBoul@xxxxxxx"
Phone="+88
09 75" LastRegisterTime="2005-03-29T09:36:00"
xmlns="http://schemas.microsoft.com/RtcServer/2002/11/dbimpexp">
<ContactGroups>
<ContactGroup
Number="1" DisplayName="~">
</ContactGroup>
</ContactGroups>
........
When I then use
Public xmlNsM As New XmlNamespaceManager(xmlDoc.NameTable)
Dim node
As
XmlNode
xmlDoc.Load(pfad)
Dim nodeX As XmlNode =
xmlDoc.SelectSingleNode("/HomedResources", xmlNsM)
The SelectSingleNode Method doesn't find any node!
But when I remove the xmlns-Attribute on the top of the XML-Document SelectSingle Node find a node.
Any Idea how to use SelectSingleNode with Namespaces?
thanx
Marcel
- Follow-Ups:
- Re: SelectSingleNode and Namespace
- From: Dennis Myrén
- Re: SelectSingleNode and Namespace
- From: Martin Honnen
- Re: SelectSingleNode and Namespace
- From: LOZANO-MORÁN, Gabriel
- Re: SelectSingleNode and Namespace
- Prev by Date: Missing namespace in XML serialization
- Next by Date: Re: SelectSingleNode and Namespace
- Previous by thread: Missing namespace in XML serialization
- Next by thread: Re: SelectSingleNode and Namespace
- Index(es):