Skip to main content

 Web service API

How to use PageSeeder's Web service API

<document-fragment>

Summary

This is the container element for a PSML document's fragment and its metadata.

Usage context

Permitted content<locator>, <fragment>, <media-fragment>, <properties-fragment>, <xref-fragment>
Permitted parent

Attributes

No attributes.

Examples

<document-fragment>
  <locator id="325" fragment="4"/>
  <fragment id="4">
    <para>This is the fragment content</para>
  </fragment>
</document-fragment>

Schema

XML Schema

<xs:element name="document-fragment">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="locator"/>
      <xs:choice>
        <xs:choice minOccurs="0" maxOccurs="1">
          <xs:element ref="fragment"            minOccurs="0" />
          <xs:element ref="media-fragment"      minOccurs="0" />
          <xs:element ref="xref-fragment"       minOccurs="0" />
          <xs:element ref="properties-fragment" minOccurs="0" />
        </xs:choice>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
</xs:element>

Relax Schema

element document-fragment {
  element locator,
  (fragment | media-fragment| xref-fragment | properties-fragment)?
}

Compatibility

No change since initial API release.

See also

Created on , last edited on