xml file reading

Last post 07-07-2008 4:46 AM by kalyan1982. 1 replies.

Sort Posts:

  • xml file reading

    07-07-2008, 3:02 AM
    • Member
      71 point Member
    • dagamshiva
    • Member since 05-17-2007, 4:35 AM
    • Posts 109

    Hi friends,

    I have an xml file in my appication. I want to display all the data of  the xml file(images  and specail characters also).

    How it is possible? one of the friend said using iostream it is possible?

    What is  iostream and how can i use iostreams  to read an xml file ? 

    Please help me.

    Shivakmar Dagam
  • Re: xml file reading

    07-07-2008, 4:46 AM
    Answer
    • Contributor
      2,043 point Contributor
    • kalyan1982
    • Member since 04-10-2008, 4:28 AM
    • Johannesburg, South Africa
    • Posts 353

    Hi there,

    The below code snippet may help you sove your problem.

    Dim FilePath As String = System.Configuration.ConfigurationManager.AppSettings("Dir") & "Documents\XML\Test.xml"

    Dim XMLDoc As New XmlDocument

    XMLDoc.Load(FilePath)

    LblName.Text = XMLDoc.GetElementsByTagName("Name").Item(0).InnerText

    Kalyan Krishna.B
    (Web Developer)

    Email: kalyandotnetdeveloper@gmail.com
Page 1 of 1 (2 items)