reading xml files with c#.Net
-
hi to all, i'm coding a routing that can read all the node of an xml file. how can i know if a node has one or more child nodes best regards and thanks in advance fady
-
hi to all, i'm coding a routing that can read all the node of an xml file. how can i know if a node has one or more child nodes best regards and thanks in advance fady
-
hi to all, i'm coding a routing that can read all the node of an xml file. how can i know if a node has one or more child nodes best regards and thanks in advance fady
Try Dim ObjXmlDoc As New XmlDataDocument ObjXmlDoc.Load("file.xml") Dim objNodeList As XmlNodeList = ObjXmlDoc.GetElementsByTagName (strNodeName) Dim strValue As String = objNodeList(0).InnerText Catch ex As Exception ' whatever End Try Tamimi - Code
-
Try Dim ObjXmlDoc As New XmlDataDocument ObjXmlDoc.Load("file.xml") Dim objNodeList As XmlNodeList = ObjXmlDoc.GetElementsByTagName (strNodeName) Dim strValue As String = objNodeList(0).InnerText Catch ex As Exception ' whatever End Try Tamimi - Code
thanks to your reply, but my xml file is an XmlTextReader that has been loaded from an sql server database so do you have another solution for my problem best regards and thanks in advance fady
-
thanks to your reply, but my xml file is an XmlTextReader that has been loaded from an sql server database so do you have another solution for my problem best regards and thanks in advance fady
-
thanks to your reply, it works fine fady