12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- package python.lib.xml.etree;
- import python.lib.Tuple.Tup2;
- import python.NativeIterable;
- import python.NativeIterator;
- extern class XMLParser {
- }
- @:pythonImport("xml.etree.ElementTree", "Element")
- extern class Element {
- public function getroot ():ElementTree;
- public var tag:String;
- public var attrib : Dict<String, String>;
- public var text:Null<String>;
- public function get <T>(key:String, def:T = null):T;
- public function set (key:String, val:String):Void;
- public function copy ():Element;
- public function keys ():Array<String>;
- public function items ():Array<Tup2<String, String>>;
- public function iter (tag:String):NativeIterable<Element>;
- public function iterfind (tag:String, namespaces:Dict<String,String> = null):NativeIterator<Element>;
- public function find (match:String, namespaces:Dict<String,String> = null):Null<Element>;
- public function findall (match:String, namespaces:Dict<String,String> = null):Array<Element>;
- }
- @:pythonImport("xml.etree.ElementTree")
- extern class ElementTree {
- public static function XML(text:String, ?parser:XMLParser):Element;
- public static function parse(xml:String):ElementTree;
- public function iter (tag:String):NativeIterable<Element>;
- public function find (match:String, namespaces:Dict<String,String> = null):Null<Element>;
- public function getroot ():Element;
- }
|