ElementTree addList(ElementTree parent, ListType ltype, Int initialsize, [String] initialcontents=createArray(1))
Arguments
parent: The parent elementltype: Is the listUnorderedorOrderedinitialsize: The initial number of list elements to haveinitialcontents: Optionally, the initial text content for some or all of the list elements. If this list is shorter thaninitialsize, then only the first list items will be populated. If it is longer, then the extra list items will be ignored.
Usage
Add a list to the parent element. Lists may only directly contain list items.
steps = ["Catch flamingo","Place flamingo in pan","Boil for 3 hours"];
list = addList(parent,Ordered,3,steps);