Documentation Center

getAllowedChildren

Description

Get the allowed children for this element.

Example

var node = Editor.getActiveDocument().selectSingleNode("//section");//get a section
var list = node.getAllowedChildren(); //get a namelist of allowed children

for(var i = 0; i < list.getLength();i++)
{ 
  var newNodeName = list.
getName(i);  //use getName to get the names from the list
}

Syntax

XopusElement.getAllowedChildren () : XopusNameList

Return Value

XopusNameList. Get the allowed children for this element.