W3cubDocs

/Haxe Python

Element

package python.lib.xml.etree

import python.lib.xml.etree.ElementTree

@:pythonImport("xml.etree.ElementTree","Element") Available on python

Variables

attrib:Dict<String, String>

tag:String

text:Null<String>

Methods

copy ():Element

@:value({ namespaces : null }) find (match:String, ?namespaces:Dict<String, String>):Null<Element>

@:value({ namespaces : null }) findall (match:String, ?namespaces:Dict<String, String>):Array<Element>

@:value({ def : null }) get<T> (key:String, ?def:T ):T

getroot ():ElementTree

items ():Array<Tuple2<String, String>>

iter (tag:String):NativeIterable<Element>

@:value({ namespaces : null }) iterfind (tag:String, ?namespaces:Dict<String, String>):NativeIterator<Element>

keys ():Array<String>

set (key:String, val:String):Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/python/lib/xml/etree/Element.html