Web service API

How to use PageSeeder's Web service API

<locator>

Summary

The <locator> element is used to display metadata information on a PSML fragment.

Usage context

Permitted content
Permitted parent<document-fragment>, <draft>

Attributes

This element includes the following attributes

NameTypeRequiredDescription
idxs:longyesThe unique ID for the locator in PageSeeder.
fragmentxs:stringyesThe fragment ID in the PSML document.
editidxs:longnoThe unique ID of the latest edit on that fragment (if available).
modifiedxs:dateTimenoWhen the latest edit on that fragment occurred (if available) as ISO 8601.

Examples

<locator id="86515"
         fragment="examples"
         editid="65482"
         modified="2017-03-07T11:30:54+11:00"/>
<locator id="65487" fragment="examples" />

Schema

XML Schema

<xs:element name="locator" type="locator"/>

<xs:complexType name="locator">
  <xs:attribute name="id" type="xs:long" use="required"/>
  <xs:attribute name="fragment" type="fragment-id" use="required"/>
  <xs:attribute name="editid" type="xs:long" use="optional"/>
  <xs:attribute name="modified" type="xs:dateTime" use="optional"/>
</xs:complexType>

<xs:simpleType name="fragment-id">
  <xs:restriction base="xs:string">
    <xs:pattern value="[a-zA-Z0-9_\-\.]+"/>
  </xs:restriction>
</xs:simpleType>

Relax Schema

element locator {
  attribute id { xs:long },
  attribute fragment { xs:string },
  attribute editid { xs:long }?,
  attribute modified { xs:dateTime }?
}

Compatibility

See also

Created on , last edited on