Methods and systems are provided for importing and exporting markup language
formatted data into a spreadsheet document. XML data is associated with a schema
file defining data types and data type definitions for applying the XML data to
the document. A map is prepared that relates any XML data applied to the document
back to corresponding elements or attributes defined in the schema file. When the
document is imported into a spreadsheet application grid, the map is parsed to
find XPATHs which determine the location, data types and user data for each cell
or list object in the document related to the schema file. The cells and lists
are populated with the XML data and user data and rendered according to formatting
dictated by the XML data applied to the document. The document may be exported
such that the XML data is maintained for subsequent import and use.