Documentation Center

Load document XML

This utility routine returns the source XML of the document that is targeted. The XML is unmodified and unfiltered, loaded directly from LiveContent's XML database.

Example API call

/servlets3/wietmsd?id=1460446651838&book=s1000d_bike_41&collection=default&uniqid=1460446650925&target=tools&action=show_xml&eid=4

Parameters

ParameterDescription
targettools
actionshow_xml
eidThe element level ID on the <DOCUMENT/> envelope tag that wraps all documents in LiveContent, such as "4".
idA session ID that is valid for this collection and publication combination.
collectionThe name of the collection that the publication is registered in, such as default.
bookThe name of the publication, such as PDMUNITTEST.
uniqidTo prevent browser-side caching of data, especially with AJAX requests, it is important to make a URL unique. The most effective technique to accomplish this is to include a time parameter that is based on the time at which the call is made.

Returns

On success
Returns the XML of the document as it is stored within LiveContent's XML database.
On failure
Nothing.