"VML" redirects here. For the company, see VML, Inc.
Vector Markup Language (VML) is an XML-based file format for two-dimensional vector graphics.
VML is specified in Part 4 of the Office Open XML standards ISO/IEC 29500 and ECMA-376. According to the specification, VML should be considered a deprecated format included in Office Open XML for legacy reasons only.
VML is pervasively used in MS Office 2007 (and later version) documents (i.e. Word, Excel and Powerpoint documents).
VML was submitted to the W3C in 1998 by Autodesk, Hewlett-Packard, Macromedia, Microsoft, and Visio. Around the same time other competing W3C submissions were received in the area of web vector graphics, such as PGML from Adobe Systems, Sun Microsystems, and others. As a result of these submissions, a new W3C working group was created, which produced Scalable Vector Graphics (SVG). SVG became a W3C Recommendation in 2001 as a language for describing two-dimensional vector and mixed vector/raster graphics in XML. VML has been largely deprecated in favor of other formats, such as SVG. SVG is not compatible with VML.
Below is a VML instance as produced by Microsoft Excel 2010:
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout><v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202"
<v:path gradientshapeok="t" o:connecttype="rect"/>
</v:shapetype><v:shape id="_x0000_s1025" type="#_x0000_t202" style='position:absolute;
visibility:hidden' fillcolor="#ffffe1" o:insetmode="auto">
<v:shadow on="t" color="black" obscured="t"/>
4, 15, 5, 10, 6, 31, 9, 9</x:Anchor>
Note that, by specifying a root element named "xml", VML contravenes the XML Recommendation of the W3C, which states that names beginning 'x' 'm' 'l' are "reserved for standardization in this or future versions of this specification".
VML oval in Internet Explorer
VML, when embedded within HTML markup, is read and processed by Microsoft Internet Explorer (but not other browsers); for example, the following example displays a solid blue oval:
<v:oval style="left:0;top:0;width:100;height:50" fillcolor="blue" stroked="f"/>
VML is used by most Microsoft Office applications, such as Microsoft Word and Microsoft Visio, within HTML files created using the '
Save As HTML' option (plain HTML or MHT). Such files retain complete vector information, and can be reopened for editing using other Microsoft applications, such as Microsoft PowerPoint. VML is natively supported by Microsoft's Internet Explorer inline within HTML, using an undefined version of SGML namespaces.
Support for "ink annotations" in Office Open XML files was added to LibreOffice during the 3.7 development cycle.
VML is not natively supported by most web browsers. Web browsers such as Mozilla Firefox, Opera, Safari or Google Chrome support SVG instead of VML.
See also 
- ^ a b "Is VML in or out now, or was that a typo?". 2007-06-22. Archived from the original on 2008-06-21. Retrieved 2010-07-29.
- ^ "Ecma TC45 - New proposed dispositions extend progress in addressing all National Body comments, seek to document and resolve legacy issues – Nearly 2/3 of comments now reviewed". 2007-12-21. Retrieved 2010-07-29.
- ^ Stephane Rodriguez (2007-09-04). "Microsoft Office XML formats ? Defective by design".
- ^ Yegor Kozlov. "POI API Documentation — Class XSSFVMLDrawing". Apache Software Foundation. Retrieved 2010-07-29.
- ^ Mathews, Brian; Brian Dister, John Bowler, Howard Cooperstein, Ajay Jindal, Tuan Nguyen, Peter Wu, Troy Sandal (13 May 1998). "Vector Markup Language (VML)". W3C. Retrieved 2009-05-08.
- ^ Al-Shamma, Nabeel; Robert Ayers, Richard Cohn, Jon Ferraiolo, Martin Newell, Roger K. de Bry, Kevin McCluskey, Jerry Evans (10 April 1998). "Precision Graphics Markup Language (PGML)". W3C. Retrieved 2009-05-08.
- ^ W3C (2001-09-04). "Scalable Vector Graphics (SVG) 1.0 Specification". Retrieved 2010-07-29.
- ^ Dennis Forbes (2003-07). "Vector Graphics". MSDN Magazine. Retrieved 2010-07-29.
- ^ "VML — Vector Graphics on the Internet". 2001-07. Retrieved 2010-07-29.
- ^ "Vector Markup Language (VML)". Microsoft Corporation. Retrieved 2009-11-04.
- ^ Jon Frost, Stefan Goessner, Michel Hirtzler (2003). Learn SVG: the web graphics standard. p. 7. ISBN 0-9741773-0-X. "Support for Microsoft's submission, VML, has been realized in Internet Explorer, but development stopped in the autumn of 1998."
- ^ "Internet Explorer 10 Compatibility Cookbook (Windows)". MSDN. Microsoft. 1 October 2012. Retrieved 28 November 2012.
- ^ Seth McEvoy (2010-03-16), VML to SVG Migration Guide, Microsoft, retrieved 2010-07-29
- ^ "Map Overlays — Drawing Polylines". Google Maps API — version 2. Google. Retrieved 2010-05-25.
- ^ "Extensible Markup Language (XML) 1.0 (Fifth Edition)". World Wide Web Consortium. 2008-11-26. Retrieved 2012-11-12.
- ^ Vector Mona Lisa
- ^ http://www.derivativezero.com/blog/2012/09/importing-ooxml-ink-annotations-into-libreoffice/
External links