How to convert XML to CSV using vb.net


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to convert XML to CSV using vb.net

  1. #1
    Join Date
    Jan 2009
    Posts
    6

    How to convert XML to CSV using vb.net

    Hello Guys,

    I have to convert XML data into CSV file.
    My xml format looks like below.
    How can i convert csv using vb.net?


    <my:Fields>
    <my:Contact>
    <my:FN>Aa</my:FN>
    <my:LN>Bb</my:LN>
    <my:Email>aa@aa.com</my:Email>
    </my:Contact>
    <my:Status>
    <my:Sub>Testing</my:Sub>
    <my:TDate>12/12/2008</my:TDate>
    <myupStatus>
    <my:IsDup>1</my:IsDup>
    </myupStatus>
    </my:Status>
    </my:Fields>

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    The simplest way is to use an XSL stylesheet and the NET XslTransform class.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 1
    Last Post: 01-02-2008, 09:06 PM
  2. Convert XML file to XLS using VB
    By dishadeepa in forum VB Classic
    Replies: 1
    Last Post: 12-21-2007, 01:47 AM
  3. Replies: 0
    Last Post: 04-29-2003, 09:09 PM
  4. How to convert a CSV file to XML file
    By Samy in forum VB Classic
    Replies: 10
    Last Post: 04-29-2003, 03:40 PM
  5. Replies: 1
    Last Post: 04-08-2002, 02:15 PM

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