This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XSD to CSV 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 "XSD to CSV" Watch "XSD to CSV" New topic
Author

XSD to CSV

Prashant Mishra
Greenhorn

Joined: May 05, 2005
Posts: 12
Hi Everybody,

I am trying to read through an XSD and create a CSV file. I was looking for some guidance in the form of tutorials or sample code that I can study/use for this project. Any help will be much appreciated.

Thanks
Prashant
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Originally posted by Prashant Mishra:

I am trying to read through an XSD and create a CSV file.


For what particular reason? What is the purpose of your project?

CSV is mostly for store data. XSD is for formating XML. What is the relationship between them you assume in your project?
Prashant Mishra
Greenhorn

Joined: May 05, 2005
Posts: 12
I need the information available in the XSD to create mapping relationships used for messages in a Message Broker project.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Well, an XSD schema file is an XML document. So your first step is to learn how to read an XML document. Is this a problem for you?
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
XSD is something with the help of which we can verify the structure of a XML document(i.e Validity) and CVS is a format for storing data.

How are these two related ?


Rahul Bhattacharjee
LinkedIn - Blog
priyank yadav
Greenhorn

Joined: Feb 23, 2006
Posts: 5
In My case, I would like to have the XSD in a tabular format i.e it needs to be customised to suit the document requirement.
This for the reason that based on this various mappings will be done.
I need to specify the format as Element name, Parent Node, DataType , repitive etc......
Which will lead to better understanding and proper mapping as per the required format
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
I would like to have the XSD in a tabular format i.e it needs to be customised to suit the document requirement.


The last comment in this old thread is still relevant. XSD commonly refers to the XML schema language As discussed in that wikipedia article, it refers to rules for a legal XML document structure.

Creating a table from the data in an XML document would appear to me to be a separate problem from creating a valid XML document.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XSD to CSV
 
Similar Threads
XSD to CSV using Java
UTF date formatting
XML and XSD for excel data or csv
CSV to XML conversion
Generate XML using XSD and data in CSV