VML
VML is a language for defining graphical objects in cases where DrawingML does not apply in Office Open XML, such as text boxes and shapes in WordprocessingML and comments and controls in SpreadsheetML.
VML is a legacy format originally introduced with Office 2000 and is existing mainly for backwards compatibility reasons. The DrawingML format is a newer and richer format created with the goal of eventually replacing any uses of VML in the Office Open XML formats.
Contents
VML Usage in the Office Open XML Format
WordprocessingML OfficeArt Shapes
Office Art shape is defined as a template-based shape in VML.
For example: We have 2 shapes in Word 2007, as below:
And the OOXML description for this part is as below:
In the OOXML file, the <v:shapetype> defines the shape's path information, and the <v:shape> defines style related information. And also the property type defined in <v:shape> means current shape refer to which of the shape type definition. And also, different shape in one document may refer to the same shape type if they have same layout, but with different style only.
SpreadsheetML Comments
Comments created by Excel 2007/2010 are described as VML format in MS OOXML, and separated from SpreadsheetML.
For example, we have a xlsx file with a comment in as below:
And the comments information saved in the zip file as package\xl\comment[1].xml, and the drawing's information saved in the path as below:
WordprocessingML Text Box
Text Box created in MS Office 2007/2010 are described as VML format also, with the text information embeded in VML shape description.
For example, we have a file with a text box in it:
And the VML format saved in OOXML files is as blow:
From the OOXML definition above, the <v:textbox> part hold the text information and also format information in it to mark that it's a VML text box in the file