Rechercher une page de manuel
ElementTreeData.ElementTree.3kaya
Langue: en
Version: March 2009 (fedora - 06/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
ElementTreeData::ElementTree - An element and its descendantsSYNOPSIS
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 (kaya@kayalang.org). 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.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre