The simplest XML format Excel File

Source: Internet
Author: User

The simplest XML format Excel File

Of course, there are a few other items that can be deleted, but this may damage the integrity. This document is used to export data from an XML data source using XSLT conversion. Simple!

<? Xml version = "1.0"?>
<? Mso-application progid = "Excel. Sheet"?>
<Workbook xmlns = "urn: schemas-microsoft-com: office: spreadsheet"
Xmlns: o = "urn: schemas-microsoft-com: office"
Xmlns: x = "urn: schemas-microsoft-com: office: excel"
Xmlns: ss = "urn: schemas-microsoft-com: office: spreadsheet"
Xmlns: html = "http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns = "urn: schemas-microsoft-com: office">
<Title> Excel table </Title>
<LastAuthor> bigtall </LastAuthor>
</DocumentProperties>
<Styles>
<Style ss: ID = "Default" ss: Name = "Normal">
<Alignment ss: Vertical = "Center"/>
<Font ss: FontName = "" x: CharSet = "134" ss: Size = "12"/>
</Style>
</Styles>
<Worksheet ss: Name = "tt">
<Table>
<Row>
<Cell ss: merge1_ss = "6"> <Data ss: Type = "String"> Hello! World! </Data> </Cell>
</Row>
</Table>
</Worksheet>
</Workbook>

In fact, it can be simplified to the following:

<? Xml version = "1.0"?>
<? Mso-application progid = "Excel. Sheet"?>
<Workbook xmlns = "urn: schemas-microsoft-com: office: spreadsheet"
Xmlns: o = "urn: schemas-microsoft-com: office"
Xmlns: x = "urn: schemas-microsoft-com: office: excel"
Xmlns: ss = "urn: schemas-microsoft-com: office: spreadsheet"
Xmlns: html = "http://www.w3.org/TR/REC-html40">
<Worksheet ss: Name = "tt">
<Table>
<Row>
<Cell> <Data ss: Type = "String"> Hello! World! </Data> </Cell>
</Row>
</Table>
</Worksheet>
</Workbook>

In fact, you can also delete the three namespaces html, o, and x!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.