[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Is there a tool that converts a plain vanilla XMLdocument

  • From: Peter Flynn <peter@silmaril.ie>
  • To: xml-dev@lists.xml.org
  • Date: Thu, 4 Aug 2022 20:20:36 +0200

Re:  Is there a tool that converts a plain vanilla XMLdocument
On 04/08/2022 16:59, Roger L Costello wrote:
Hi Folks,

I have a plain, vanilla XML document with a root element that contains a bunch of <row> elements and each <row> element contains
fields, e.g.,

<document>
<row>
<field1>ABC</field1>
<field2>DEF</field2>
<field3>GHI</field3>
</row>
...
</document>

To display that XML document in Excel requires a bunch of steps:
[...]
Phew! That's a lot of work to get Excel to display the XML document.
Nobody does that. At least, not that I know of.

Is there a tool that takes a plain, vanilla XML document and converts it into an Excel document?
You either write a few lines of XSLT or use one of the XML utilities, eg lxprintf (from the LTXML2 toolkit):

$ lxprintf -e row "%s,%s,%s\n" field1 field2 field3 doc.xml >doc.csv

or even the utility I wrote in 1996 (updated 2006) to do this using only the ESIS output of the onsgmls parser and a copy of awk, see http://xml.ailmaril.ie/software/xml2csv.zip

Peter


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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