Load TOC XML
Loads the XML representation of the TOC.
Example API call
/servlets3/wietmsd?id=1566910399623&book=s1000d_bike_41&collection=default&target=toc&action=tree_xml&eid=root&levels=1
Parameters
| Parameter | Description |
|---|---|
target | toc |
action | tree_xml |
levels | The level of depth to load from the point of the targeted TOC element. If levels is set to 2, two levels of children elements below the targeted element will be loaded and returned. |
eid | root to load the entire TOC or the number representing the starting element to load. |
id | A session ID that is valid for this collection and publication combination. |
collection | The name of the collection that the publication is registered in, such as default. |
book | The name of the publication, such as s1000d_bike_41. |
Returns
- On success
-
The following is an example of the response for this API call with a value of
1specified for thelevelsparameter.<?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet type="text/xsl" href="/servlets3/wietmsd/styles/toc.xsl" ?> <TOC_ROOT EID="1" LASTEID="919" xmlns:xlink="http://www.w3.org/1999/xlink"> <SYSTEM EID="2" LASTEID="3" ROOT="1" TOP="1"> <TITLE EID="3">Bike 4.1</TITLE> </SYSTEM> <SYSTEM EID="764" LASTEID="765" ROOT="1" TOP="1"> <TITLE EID="765">Lighting</TITLE> </SYSTEM> <SYSTEM APPENDIX="1" EID="815" LASTEID="816" ROOT="1" TOP="1"> <TITLE EID="816">No title for this system</TITLE> </SYSTEM> </TOC_ROOT> - On failure
- Nothing.