Results 1 to 3 of 3

Thread: [RESOLVED] edited

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2007
    Posts
    172

    Resolved [RESOLVED] edited

    edited ...
    Last edited by Devdude; Aug 31st, 2007 at 04:32 AM.

  2. #2
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: using dataset to copy values of xml data to txt file

    What is it writing in your text file? I just gave it a little test and something like this is just writing the values and no "dataset code."
    vb.net Code:
    1. Dim ds As New DataSet()
    2. ds.ReadXml(Application.StartupPath & "XmlTest.xml")
    3.  
    4. Dim value As String
    5. Dim sw As New IO.StreamWriter("c:\test.txt")
    6.  
    7. For Each dr As DataRow In ds.Tables(0).Rows
    8.     value = dr.Item(0).ToString()
    9.     sw.WriteLine(value)
    10. Next dr
    11.  
    12. sw.Close()

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2007
    Posts
    172

    Re: using dataset to copy values of xml data to txt file

    Thanks allot for your help!

    Managed to get it working!

    thanks!

    REP added

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width