Note XML features, except for saving files in the XML Spreadsheet format, are available only in Microsoft Office Professional Edition 2003 and Microsoft Office Excel 2003.
How Excel handles XSD data types when importing XML data
The following table lists the display format that is applied when an item with a particular XSD data type is imported into an Excel worksheet. Data with an XSD format listed in the Unsupported Formats column are imported as text values.
| XSD data type | Excel display format | Unsupported formats |
|---|
| time | h:mm:ss | hh:mm:ssZ Hh:mm:ss.f-f |
| dateTime | m/d/yyyy h:mm | yyyy-mm-ddThh:mm:ssZ
yyyy-mm-ddThh:mm:ss+/-hh:mm
yyyy-mm-ddThh:mm:ss.f-f
Years outside of the range between 1900 to 9999
|
| date | Date *3/14/2001 | yyyy-mm-ddZ
yyyy-mm-dd+/-hh:mm Years outside of the range between 1900 to 9999
|
| gYear | Number, no decimals | yyyy+/-hh:mm
Years outside of the range between 1900 to 9999
|
gDay gMonth | Number, no decimals |
|
| gYearMonth | Custom mmm-yy | yyyy-mm+/-hh:mm Years outside of the range between 1900 to 9999
|
| gMonthDay | Custom d-mmm | |
anytype
anyURI
base64Binary
duration
ENTITIES
ENTITY
hexBinary
ID IDREF
IDREFS
language
Name
NCName
NMTOKEN
NMTOKENS
normalizedString
NOTATION
QName
string
token
| Text | |
| boolean | Boolean | |
decimal float double | General | Leading and trailing zeros will are dropped.
‘-’ and ‘+’ signs will be respected, although only negative signs will be displayed.
Excel stores and calculates with 15 significant digits of precision.
|
byte
int
integer
long
negativeInteger
nonNegativeInteger
nonPositiveInteger
positiveInteger
short
unsignedByte
unsignedInt
unsignedLong
unsignedShort
| General |
|
How Excel display formats map to XSD data types when exporting XML data
When you export XML data, the exported data will match the data displayed in the worksheet under the following circumstances:
- The Excel display format is Text.
- You have not changed the display format of the data
If you change the display format of a cell with numeric, date, or time data, then the underlying value of the cell is exported. For example, you apply a Percentage display format to a cell that results in the display of 51.50%. The cell's value will be exported as .515.