Share via


Markup Files (.xmu)

This is preliminary documentation and subject to change.

A markup file describes visual elements, animations, timing, and events. A markup file is an XML file with the file name extension .xmu. The syntax of a markup file is intentionally close to HTML, SMIL, and other Web standards. The following example markup shows the syntax of a simple markup file that draws an image on the screen:

<?xml version="1.0"?>
<root 
    xml:lang="en" 
    xmlns="https://www.dvdforum.org/2005/ihd"
    xmlns:style="https://www.dvdforum.org/2005/ihd#style"
    xmlns:state="https://www.dvdforum.org/2005/ihd#state"
>
    <head>
        <styling />
        <timing clock="page" />
    </head>
    <body>
        <div 
            style:position="absolute" 
            style:x="100px" 
            style:y="100px" 
            style:width="800px" 
            style:height="400px"
            style:backgroundImage="url('file:///dvddisc/ADV_OBJ/image.png')" 
        />
    </body>
</root>

While an application is running, the markup file is read and converted into a document object model (DOM) object tree structure. At each video frame, an application graphics plane and a subtitle graphics plane are generated from the DOM and rendered on top of the video planes. For more information on the rendering order for video and image planes, see HD DVD Rendering Stack.

HD DVD markup files are covered in chapter 7 of the HD DVD specification.

See Also