B
BiT
Hello
i'm tryin` to read xml elements from NZB type file (Link to nzb sample:
http://en.wikipedia.org/wiki/Nzb)
I worte this code but it dosen't find any elements (I need to get the
message ID)
Sub NZBToMsgID(ByVal _FileLnk As String, ByVal msgIDbox As ComboBox)
Dim m_xmld As XmlDocument
Dim m_nodelist As XmlNodeList
Dim m_node As XmlNode
'Create the XML Document
m_xmld = New XmlDocument()
'Load the Xml file
m_xmld.Load(_FileLnk)
'Get the list of name nodes
m_nodelist = m_xmld.SelectNodes("/nzb/file/segments/segment")
'Loop through the nodes
For Each m_node In m_nodelist
msgIDBox.Items.Add(m_node.ChildNodes.Item(0).InnerText)
Next
End Sub
thanks
i'm tryin` to read xml elements from NZB type file (Link to nzb sample:
http://en.wikipedia.org/wiki/Nzb)
I worte this code but it dosen't find any elements (I need to get the
message ID)
Sub NZBToMsgID(ByVal _FileLnk As String, ByVal msgIDbox As ComboBox)
Dim m_xmld As XmlDocument
Dim m_nodelist As XmlNodeList
Dim m_node As XmlNode
'Create the XML Document
m_xmld = New XmlDocument()
'Load the Xml file
m_xmld.Load(_FileLnk)
'Get the list of name nodes
m_nodelist = m_xmld.SelectNodes("/nzb/file/segments/segment")
'Loop through the nodes
For Each m_node In m_nodelist
msgIDBox.Items.Add(m_node.ChildNodes.Item(0).InnerText)
Next
End Sub
thanks