SYNOPSIS

ElementTreeData::ElementTree< >

  • = ElementTree([ElementTreeData::Element] elements,String name,Dict::TinyDict<String, String> attributes)

DESCRIPTION

This data type represents a node in the tree and its descendants (in XML, an element and its contents). The elements field is a list of the descendant ElementTreeData.Element (3kaya) s, the name field is the name of the element, and the attributes field is a dictionary of attribute names and values.

  • attrs = newTiny(); add(attrs,"title","Hello"); el = ElementTree(subs,"example",attrs); // converts to a string as // <example title="Hello">...contents of subs here...</example>

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/

LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.