Jump to content

Structured Data File Format XML


richip
 Share

Recommended Posts

Is there an XML specification for defining structured data file formats (e.g. CSV files of a fixed number of columns/fields)? I've got some structured data that I'd like to export into various file formats (depending on the requirement) and would like to modularize the exporting of the data to files. Googling around resulted in just one hit (some Microsoft XML standard which had elements like COLUMN, ROW, FIELD, etc.) Is there perhaps a standard out there, ideally with implementations in Java?

Link to comment
Share on other sites

Being a structured data format, similarly to CSV is what XML is all about...There are no fixed semantics to any elements, but facts like "elements can contain zero or more elements", "attributes are parts of elements", "attributes must be unique per element", etc. are part of the XML standard.If what you're after is a table, you could use an XHTML table. If the data you want to store is closer to being a graphical kind of data, SVG might be more suitable. And if all else fails, you can always define a custom dialect.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...