| re: read nodelist from xml in asp.net problem
yes i am using select nodes , ok i coded it with namespacemanager as above:
[SIZE=2]xmldoc.LoadXml(theXMLString)
[/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] nsmanager [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] XmlNamespaceManager(xmldoc.NameTable)
nsmanager.AddNamespace([/SIZE][SIZE=2][COLOR=#a31515]"dt"[/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#a31515]"http://bankofgreece.gr/dom/real_estate/v1"[/COLOR][/SIZE][SIZE=2])
list = xmldoc.SelectNodes([/SIZE][SIZE=2][COLOR=#a31515]"//dt:Data"[/COLOR][/SIZE][SIZE=2], nsmanager)[/SIZE]
[SIZE=2][/SIZE]
[SIZE=2][/SIZE]
[SIZE=2]but my question how can i do with some other way , because if the namespace is different of a uploaded XML document this code will not work.. my question is if there is any programaticaly way to avoid any namespace of uploaded XML document and select nodes without any problem???
[/SIZE]
|