RE: easily reading and using an XML-string
From: Jim Perry (jperry_at_qssmeds.com)
Date: 05/07/04
- Next message: Ken Tucker [MVP]: "Re: Why can't I draw to to the control's graphics?"
- Previous message: David Schwartz: "Free Icons"
- In reply to: DraguVaso: "easily reading and using an XML-string"
- Next in thread: DraguVaso: "Re: easily reading and using an XML-string"
- Reply: DraguVaso: "Re: easily reading and using an XML-string"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 7 May 2004 12:11:06 -0700
Check out the XMLDocument class and the LoadXML method for loading the string:
Option Explicit
Option Strict
Imports System
Imports System.IO
Imports System.Xml
Public Class Sample
Public Shared Sub Main()
'Create the XmlDocument.
Dim doc As New XmlDocument()
doc.LoadXml(("<book genre='novel' ISBN='1-861001-57-5'>" & _
"<title>Pride And Prejudice</title>" & _
"</book>"))
'Save the document to a file.
doc.Save("data.xml")
End Sub 'Main
End Class 'Sample
You can then use the class's method for searching for specific nodes and the info they contain.
- Next message: Ken Tucker [MVP]: "Re: Why can't I draw to to the control's graphics?"
- Previous message: David Schwartz: "Free Icons"
- In reply to: DraguVaso: "easily reading and using an XML-string"
- Next in thread: DraguVaso: "Re: easily reading and using an XML-string"
- Reply: DraguVaso: "Re: easily reading and using an XML-string"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|