wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Problem with XML to CSV transformation using JDOM api Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Problem with XML to CSV transformation using JDOM api" Watch "Problem with XML to CSV transformation using JDOM api" New topic
Author

Problem with XML to CSV transformation using JDOM api

Vineet Venkatesh
Greenhorn

Joined: Oct 08, 2002
Posts: 4
Hi Guys!
I am facing a problem wherein i am trying to transform an XML using an XSL to a csv format data using the JDOM api, which is currently returning an empty string as the output. Listed below is the code snippet for the transformation which results in an empty string.
Could someone please suggest a way to resolve this particular issue.
Transformation Code

Sample XML

Sample XSL

Please help !
[ March 11, 2004: Message edited by: Lasse Koskela ]
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
ummmmm.......not familiar with JDOM (yet), but Xalan
gave me the expected output. So your style sheet is ok.
This is probably trivial to you, but anyways.....


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with XML to CSV transformation using JDOM api
 
Similar Threads
org.xml.sax.SAXParseException
This canNOT be correct, can it?
XML Parsing
java.lang. IllegalState Exception: Root element not set
In XSLT , is reference to root node required to access child node of root node ?