Server-Side JavaScript Example 5

Recursive List Enumeration

function displayList( listName ) { // as we encounter a sublist while enumerating the properties we'll store // it in this array rather then displaying it immediately so that we can // group properties and sublists separately in the output var subLists = new Array(); // display the name of the list and open an unordered list tag RMAOutput( "
  • " + listName + "\n" ); RMAOutput( "\n" ); } displayList( "license.License0" );