• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSD to CSV

 
Prashant Mishra
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need the information available in the XSD to create mapping relationships used for messages in a Message Broker project.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
priyank yadav
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic