1ElementTree.string(3kaya) Kaya module reference ElementTree.string(3kaya)
2
3
4
6 ElementTree::string - Convert an ElementTree to a String
7
9 String string( ElementTree etree, EmptyTagMode mode=OpenAndClose, Int
10 indentlevel=0, UnicodeFormat uform=LiteralUTF8, HashSet<String> break‐
11 ers=newHashSet(1, strHash), HashSet<String> emptyels=newHashSet(1,
12 strHash) )
13
15 etree The ElementTree to convert to a String
16
17 mode How to print empty tags (see ElementTreeData.EmptyTagMode (3kaya)
18 ). Optional, defaulting to OpenAndClose
19
20
21 indentlevel The initial indentation level to use. Optional, defaulting
22 to zero.
23
24 uform The method of printing non-ASCII characters (see ElementTree‐
25 Data.UnicodeFormat (3kaya) ). Optional, defaulting to LiteralUTF8
26
27
28 breakers A dictionary of elements that start a new line in the output
29 code. Optional, defaulting to an empty dictionary
30
31 emptyels A dictionary of elements that are empty. Optional, defaulting
32 to an empty dictionary
33
35 Convert an ElementTree to a String, using the selected conversion
36 options. If the String will be printed immediately, use Element‐
37 Tree.lazyPrint (3kaya) instead.
38
40 Kaya standard library by Edwin Brady, Chris Morris and others
41 (kaya@kayalang.org). For further information see http://kayalang.org/
42
44 The Kaya standard library is free software; you can redistribute it
45 and/or modify it under the terms of the GNU Lesser General Public
46 License (version 2.1 or any later version) as published by the Free
47 Software Foundation.
48
50 ElementTree.lazyPrint (3kaya)
51
52
53
54Kaya December 2010 ElementTree.string(3kaya)