Skip to Content
Real World XML
book

Real World XML

by Steven Holzner
January 2003
Beginner to intermediate content levelBeginner to intermediate
1200 pages
23h 42m
English
Peachpit Press
Content preview from Real World XML

Creating VML Documents

In Internet Explorer, VML is embedded in HTML documents. You start by declaring this namespace, v:

<HTML xmlns:v="urn:schemas-microsoft-com:vml"> 
    .
    .
    .

You must also instantiate the VML engine, which is implemented as an Internet Explorer behavior. To implement this behavior, you use a <STYLE> element, connecting the v namespace to the VML default behavior:

<HTML xmlns:v="urn:schemas-microsoft-com:vml"> 

    <HEAD>
        <TITLE>
            Using Vector Markup Language
        </TITLE>

        <STYLE>
					v\:* {behavior: url(#default#VML);}
					</STYLE>
					</HEAD>
    .
    .
    .

This indicates to Internet Explorer that the VML in the page should be handled by the VML engine. Now you can add VML elements such as <oval> if you use the proper namespace, v:

 <HTML xmlns:v="urn:schemas-microsoft-com:vml"> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Inside XML

Inside XML

Steven Holzner
XML Hacks

XML Hacks

Michael Fitzgerald

Publisher Resources

ISBN: 0735712867Purchase book