XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Posttop
Craig WorthingSubject: Convert XML Feed to CSV/SQL/XLS
Author: Craig Worthing
Date: 31 Jan 2010 01:22 PM
Originally Posted: 31 Jan 2010 01:19 PM
I receive this type of XML data feed:
<Root xmlns:sql='urn:schemas-microsoft-com:xml-sql'><Truserv><Item item_nbr="103961" srp_cost="4.99" member_cost="2.24" ds_cost="2.29" short_description="QT Pet Feeding Dish" vendor_id="21717" dpt_code="L " class_code="70" subclass_code="24" vendor_name="BERGAN LLC" upc="879213008895" long_description="QT, Galvanized Pet Platter Pet Feeding Dish, Easy To Clean, Wide Low Profile Ideal For Multiple Cats Or Dogs, Especially Puppies &amp; Kittens, Easy To Fill, Great For Outside Use." weight="0.50" length="9.00" width="9.00" height="1.25" pack_weight="3.60" pack_length="9.20" pack_width="9.20" pack_height="2.60" retail_pack_qty="1" member_pack_qty="8" member_pack_type="B" member_break_pack="Y" model="88889" country_code="CN" to_be_discontinued="N" retail_uom="EA " Edit_Divisor="1" Exclusive_Brand_Code=" "/></Truserv></Root>

I would like to convert to CSV if possible to open in EXCEL so I can filter out certain columns/rows using code within excel...

Basically what I'm doing is an online store which I get in the above XML format, which has around 78,000 items to sell.. I need the final file to be in CSV so I can import it in to my store...

or IF possible get the XML in a different XML format such as

<item>
<item_nbr>111111</item_nbr>
<srp_cost>2.00</srp_cost>
...
</item>

When I import the XML file in Excel For some reason around line 22,000 till 50,000 it skips all of those lines and resumes after ~50,000... that's why I need to convert to possibly CSV/XLS and import in to excel(hopefully in these formats it wont skip lines)...

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.