Inside of the container are XML files () that: define the relationship between each part in the package, contain the data displayed in the document or workbook, define the styles and formatting used in the document, and contain information on the properties and settings of package and its document parts.
Because it is a Zip file, you can see the document parts and structure of the file by adding the extension to the document file name and opening the package.
This is because the DOM is meant to be platform independent, and different platforms usually have different semantics for utilizing persistent data.
The Microsoft Office Open XML file structure makes it possible to edit and update Microsoft Office 2007 files without the need to open the file in the application that created it.
The components parts of the Open XML file are contained in an industry standard Zip container.
Learning your way around the DOM parser included in the Microsoft XML Core Services library (a.k.a. Let’s check out a sample Visual Basic 6 application that will make it a bit easier to understand how to parse, edit, and validate existing documents using MSXML’s DOM parser. Book Editor uses MSXML2’s DOM parser to add, edit, and delete books from an XML-based book catalog, which seems to be the somewhat-overused standard introductory XML example.
Throughout this article, I’ll be referring you to the sample Book Editor application we looked at last time. As a matter of fact, you may remember I used such a sample XML document in my Remedial XML series, which you are welcome to refer to if you find yourself in need of a little concept clarification.