Jump to content

Structured Data File Format XML


richip

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...