XML technologies / PresentationML / The slide part / Basic structure

2.1 Basic structure

The root element of this part is p:sld in the namespace “http://schemas.openxmlformats.org/presentationml/2006/main”. This namespace covers all structural elements of the Slide part. It is assigned the prefix p. The following are also defined: the namespaces “http://schemas.openxmlformats.org/drawingml/2006/main” with prefix a and “http://schemas.openxmlformats.org/officeDocument/2006/relationships” with prefix r, normally on this element. From now on, p, a and r represent the corresponding namespaces. Of the XML markup languages mentioned earlier, p is the namespace for PresentationML and a is the namespace for DrawingML. As shown below, PresentationML describes all structural features of a presentation, while DrawingML handles most visual features.

An empty slide, the most basic form of a slide, has the following XML code:

<p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main">  
   <p:cSld>                                    (1)
      <p:spTree>                               (2) 
         <p:nvGrpSpPr>                         (3) 
            <p:cNvPr id="1" name=""/>  
            <p:cNvGrpSpPr/>  
               <p:nvPr/>  
         </p:nvGrpSpPr>  
         <p:grpSpPr>                           (4)
            <a:xfrm>  
               <a:off x="0" y="0"/>  
               <a:ext cx="0" cy="0"/>  
               <a:chOff x="0" y="0"/>  
               <a:chExt cx="0" cy="0"/>  
            </a:xfrm>  
         </p:grpSpPr>  
     </p:spTree>  
  </p:cSld>  
  <p:clrMapOvr>                                (5)
     <a:masterClrMapping/>  
  </p:clrMapOvr>  
</p:sld>

1

<p:cSld>

Common slide data

Contains all elements holding information about this slide. 

2

<p:spTree>

Shape tree

Contains a collection of shapes (layout frames) and its basic properties (group shape).

3

<p:nvGrpSpPr>

Non-visual properties for a group shape

Contains the non-visual properties of the shape collection.

4

<p:grpSpPr>

Group shape properties

Contains all visual properties of the shape collection. 

5

<p:clrMapOvr>

Color map override

Contains an element for the “Color Map” to use. It can contain a:masterClrMapping to use the corresponding master slide’s color map, or a:overrideClrMapping to override that color map. A color map specifies the slide’s default colors. Each default color has a name by which it can be referenced.

<< back to 2. The slide part

continue to 2.2 Shape >>

back to top