Lines Matching full:root
11 doc = libxml2.parseDoc("""<root><foo>hello</foo></root>""")
14 <root><foo>hello</foo></root>
20 <root><foo>hello</foo></root>
26 <root>
28 </root>
34 <root>
36 </root>
44 root = doc.getRootElement() variable
45 str = root.serialize()
46 if str != """<root><foo>hello</foo></root>""":
47 print("error serializing XML root 1")
49 str = root.serialize("iso-8859-1")
50 if str != """<root><foo>hello</foo></root>""":
51 print("error serializing XML root 2")
53 str = root.serialize(format=1)
54 if str != """<root>
56 </root>""":
57 print("error serializing XML root 3")
59 str = root.serialize("iso-8859-1", 1)
60 if str != """<root>
62 </root>""":
63 print("error serializing XML root 4")
112 root = doc.getRootElement() variable
113 str = root.serialize()
115 print("error serializing HTML root 1")
117 str = root.serialize("ISO-8859-1")
119 print("error serializing HTML root 2")
121 str = root.serialize(format=1)
129 print("error serializing HTML root 3")
131 str = root.serialize("iso-8859-1", 1)
139 print("error serializing HTML root 4")