wordpress hit counter
Welcome to OpenXML Developer Sign in | Join | Help

Sample Open XML Documents

The attached ZIP archive, OpenXML-samples.zip, contains samples of various Open XML Format documents. These documents were created with Office 2007 Beta 1 Tech Refresh (B1TR). NOTE: final versions of these documents, created by the shipping version of Office 2007, were posted here in August 2007.

The ZIP archive includes these files:

  • sample.docx - Open XML word processing document
  • sample.doc - Word (binary format) version of sample.docx
  • docx.png - screen shot of Word 2007 rendering of sample.docx
  • sample.xlsx - Open XML spreadsheet document
  • sample.xls - Excel (binary format) version of sample.xlsx
  • xlsx.png - screen shot of Excel 2007 rendering of sample.xlsx
  • sample.pptx - Open XML presentation document
  • sample.ppt - Powerpoint (binary format) version of sample.pptx
  • pptx.png - screen shot of Powerpoint 2007 rendering of sample.pptx

The files are deliberately simple, to demonstrate the underlying structure of Open XML Formats without the distraction of any needless complexity. The text in the documents is from standard Latin placeholder.

The word processing document simply contains three paragraphs of text, with no formatting, headings, or headers/footers.

The spreadsheet document contains 10 rows and 2 columns. The first column is all text, and the second column is all numbers, with a simple formula to make cell B10 equal to the sum of cells B1-B9.

The presentation document contains a single slide, with a heading and sub-heading. No themes were applied to the slide.

Note the size difference between the Open XML Format versions and the Office binary-format versions. This is a good example of the ZIP compression that is built into the Open XML Formats.

To explore the DOCX/XLSX/PPTX files, you can use any ZIP software, such as the ZIP compression built into Windows, or tools such as WinZIP or PKZIP. Simply rename the files with a .ZIP extension, and you're ready to drill down into them and see the folders and XML components that make up an Open XML Format document.

Published Sunday, March 19, 2006 9:52 PM by dmahugh
Filed Under: , , ,
Attachment(s): samples.zip

Comments

 

BruceLi said:

Good samples, but want more.

Thanks. ^^
April 8, 2006 5:10 AM
 

somannar said:

hi

i want to get the xml document which is created by wordML2007.

from the extracted xml files need to combine thr Java program  and make one xml file n one xsl file to render PDF.

could you please help regarding the same

thanks in advance.

Somanna R
December 12, 2006 3:02 AM
 

humbroll said:

i needed simple samples..
this is exactly to me.
thanks.
April 7, 2007 1:15 AM
 

Diogenes said:

I know it's been said already, but it would be nice to have a second set of documents with at least rich-text formatting.
June 11, 2007 3:11 PM
 

dmahugh said:

Diogenes, for more complex samples see this page:
http://openxmldeveloper.org/articles/DeveloperWorkshopContent.aspx

Note that all the presentations are provided in PPTX format, and all the manuals are in DOCX format, so those are good real-world samples, and there are other sample documents (many demonstrating a single concept) in the "Samples" downloads for each module.
August 15, 2007 2:21 AM
 

dikelmm said:

Newbie question:  When I open the docx files in Notepad, they look like binary files to me.  What kind of XML is this?  Why can't I read it in an ascii editor?
April 29, 2008 4:01 PM
 

jp2code said:

@dikelmm: Because the files are zipped. Unzip the document first.
January 11, 2010 4:07 PM
Anonymous comments are disabled