Hi,
I use a XML-Doc with a Namespace like the following example:
<HomedResources xmlns=http://schemas.microsoft.com/RtcServer/2002/11/dbimpexp Version="3">
<HomedResource UserAtHost="PB***@team.de" Enabled="1" VersionPermission="10"
VersionContact="25" DisplayName="Boullay, Peter" Email="PB***@team.de" 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