create xml file from dataset


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: create xml file from dataset

  1. #1
    Join Date
    May 2007
    Posts
    3

    create xml file from dataset

    Hello,
    I am trying to create a xml file from a dataset.
    I filled the data set with data from a table in the data base and I am trying to create the xml file using a xml schema. in the xml schema I have removed some columns that I got from the data base.
    when i use the function writexml I get in the xml file the columns that was trying to remove.
    how can I write xml file without those columns using xml schema.
    thank you

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    I believe that WriteXML always writes the entire DataSet. I recommend selecting only the columns from the database that you want in the XML file.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Apr 2008
    Posts
    2
    left-click the xml and select xml schema

Similar Threads

  1. Help on Formating XML file ??
    By serge calderara in forum .NET
    Replies: 3
    Last Post: 04-12-2005, 01:10 PM
  2. Replies: 0
    Last Post: 10-28-2002, 06:25 AM
  3. XML from Mainframe flat file
    By Gee in forum XML
    Replies: 11
    Last Post: 08-23-2001, 04:47 PM
  4. Replies: 0
    Last Post: 05-23-2000, 09:16 AM
  5. Replies: 1
    Last Post: 05-23-2000, 09:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center