Link to home
Start Free TrialLog in
Avatar of Marc Davis
Marc DavisFlag for United States of America

asked on

Create an XML file from VBS?

What is the manner in which a .xml file is created in VBS?

Any assistance is greatly appreciated.
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Hi davism,

really depends where your data is coming from, i didn't look into it but there is a sample script here to convert csv to xml using vbs
source: http://www.jdhitsolutions.com/resources/scripts/ConvertCSVtoXML.txt

just comment if you have comments on this, i did a xml to csv using xsl script and was looking for the other way around which looked pretty difficult

hope this helps a bit
bruintje
Avatar of Marc Davis

ASKER

I want to create it from scratch. Not from a recordset or csv file or anything like that. I want to create something from scratch. The source may be different values from different places.
ASKER CERTIFIED SOLUTION
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
resulting xml looked like

<?xml version="1.0" ?>
<catalog>
   <book id="bk1">
     <author>This is an Author</author>
      <title>Books books books</title>
      <genre>Technical Writing</genre>
      <price>$9.95</price>
      <publish_date>Librarian books</publish_date>
      <description>This is a book about books</description>
   </book>
</catalog>
this was answered by me