nickmarshall
asked on
Read XML node
Hi,
Within my XML file I have the following node;
<Type>Hardware</Type>
I would like to store "Hardware" from Type node as a string
How do I get this, I have attempted to do;
Dim XmlDoc As New XmlDocument
XmlDoc.Load(SourceFileName )
Dim lstNodes As XmlNodeList = XmlDoc.GetElementsByTagNam e("Type")
Dim node As XmlNode
For Each node In lstNodes
MessageBox.Show(node.ToStr ing)
Next
Within my XML file I have the following node;
<Type>Hardware</Type>
I would like to store "Hardware" from Type node as a string
How do I get this, I have attempted to do;
Dim XmlDoc As New XmlDocument
XmlDoc.Load(SourceFileName
Dim lstNodes As XmlNodeList = XmlDoc.GetElementsByTagNam
Dim node As XmlNode
For Each node In lstNodes
MessageBox.Show(node.ToStr
Next
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sorry, this question seems to be indirectly related to your previous asked question that is still open, if this doesnt work for you then you can close one of the two questions by requesting a close here:
https://www.experts-exchange.com/Community_Support/
https://www.experts-exchange.com/Community_Support/
XmlDoc.Load("C:\Temp\Sampl
XmlDoc.Load(SourceFileName