Results 1 to 3 of 3

Thread: Copy a DATASET to XMLDOCUMENT

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Location
    Nijmegen, The Netherlands
    Posts
    4

    Copy a DATASET to XMLDOCUMENT

    How can I copy my dataset data type to an XMLDOCUMENT data type?

  2. #2
    Lively Member
    Join Date
    Aug 2002
    Location
    outerspace
    Posts
    126
    do u need something like this.

    Dim xmlFile As String = "file.xsd"
    Dim myStreamWriter As New System.IO.StreamWriter(xmlFile)
    ds.WriteXmlSchema(myStreamWriter)

    myStreamWriter.Close()
    "All those who wonder are not lost" -j.r.r tolkien

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Location
    Nijmegen, The Netherlands
    Posts
    4

    not really

    no that creates a file... i need the xml to be in an xmldocument....

    maybe if i did a query to the sql server and got the dataset back in xmldocument data type... dont know how to that...

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