• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XSD to CSV

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
A feeble attempt to tell you about our stuff that makes us money
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic