XMLContents is an XML version of the Contents component with different parameters. (For more information see Understanding XML Components)
Name | Value | Description |
---|---|---|
command | getchildren | getmore | sync | ispresent | arechildrenpresent | ishidden | Command to execute the getchildren and getmore commands and return the children nodes. When sync is specified, a node corresponding to the current document is selected. The ispresent, ishidden, and arechildrenpresent commands can be used to check node states: online (present), hidden, or offline (not present). |
Name | Parameter | Description |
---|---|---|
maxnodes | number | The number of nodes that are returned in one server request. |
minnodesleft | number | The number of nodes necessary to create a More node with the getmore command. |
basepathid | path string | The ID of the base node. |
siteshowhits | true | false | Shows (TRUE) or hides (FALSE) hit counts. If the component shows hit counts, it takes the last query information from the properties. |
ref | true | false | Generates references (breadcrumbs). |
site | true | false | string | Creates a root site node. If FALSE is specified, or if the site parameter is not declared, the site node is not generated. If the site parameter value is blank or TRUE, the site title is used. If another nonblank value (besides TRUE or FALSE) is specified, that value is used for the site title.
Note: The site title must not contain the following symbols:
|
hidezerohits | true | false | Hides (TRUE) or shows (FALSE) hit counts when the hit count value is zero. |
Name | Parameter | Description |
---|---|---|
depth | number | Sets the number of nesting levels for the child nodes in the request. |
mergetoc | true | false | Determines whether a child node is merged (TRUE) with its parent node or not (FALSE) when the parent node has no content of its own and only one child node. |
Name | Parameter | Description |
---|---|---|
start | string | The document name to start the getmore command execution. |
direction | 1 | 2 | The direction of the getmore command execution: 1=forward, 2=backward. |
Name | Parameter | Description |
---|---|---|
syncpath | path string | Sets a path to the node to expand the table of contents to. |
maxsyncsiblings | number | Specifies the number of nodes before and after a synchronized node for creating More nodes with the getmore command. |
http://localhost/NXT/gateway.dll? f=xmlcontents& command=getchildren& basepathid=samp& maxnodes=75& minnodesleft=10& siteshowhits=trueThe result of this sample request is the following XML file:
getchildren samp
Copyright © 2006-2023, Rocket Software, Inc. All rights reserved.