Essential XML for Web Professionals by Dan Livingston Essential XML for Web Professionals by Dan Livingston
Chapter Navigation Map

Chapter 12
Common Examples of XML

Examples

Note: I've had much more luck viewing these files locally than on the Web. I can't figure out why. Any suggestions would be appreciated.

SMIL

SMIL (Synchronized Multimedia Integration Language) is a language designed for controlling multimedia objects. More specifically, SMIL is designed to control the layout of the objects and their timing; synchronization is a big part of SMIL.

SMIL is so large that its inventors decide to break into modules with specific functions. SMIL is a highly modularized specification. For example, there's a module that handles basic animation and another that handles sound level. Some modules contain many element and attributes that can be used, and some contain just a single attribute. Here's a list of all of the groups of modules in SMIL.

SVG

SVG (Scalable Vector Graphics) is an XML format that allows you to describe vector-based shapes, objects and animations. The result of an SVG file and an SVG plug-in is something that looks much like Flash. Flash is still much more popular: about 98 percent of all browsers have some form of Flash plug-in; by contrast SVG has only a 2 percent penetration.

SVG was not written for people to be able to read and understand it. For example, here's a line of SVG (it's a little squiggle).

<path id="squiggle" d="M 100 100 L 104 120 Q 25 0 L 140 150 Q 25 0 L 160 180 z"/>

You'll probably never see SVG code—chances are a program you're using, like Adboe's Illustrator, will output SVG automatically for you. Even Flash may do it one day.

WDDX

WDDX (Web Distributed Data Exchange) is a way to encode a number of different forms of data and send them as text. It's a precursor to SOAP, and although it gained a loyal following, for some reason it never really took off.


Prentice Hall PTR home | Essential Series home
© 2002 Prentice Hall PTR
13 12 11 10 9 8 7 6 5 4 3 2 1