api/xml [en]

All languages

Differences between version EMPTY and #1044

0a1,207
> [api]
> 
> [name][kwd]extern[/kwd] [kwd]class[/kwd] Xml[/name]
> [pf]Available in flash, neko, js[/pf]
> [doc]
> The standard Xml class and parsing. More API to manipulate XML are available in the ''haxe.xml'' package.
> [/doc]
> 
> [field][kwd]var[/kwd] nodeName(getNodeName,setNodeName) : [[/api/String]]
> [doc _nodeName]
> Returns the node name of an Element.
> [/doc _nodeName]
> [/field]
> 
> [field][kwd]var[/kwd] nodeType(default,null) : [[/api/XmlType]]
> [doc _nodeType]
> Returns the type of the Xml Node. This should be used before accessing other functions since some might raise an exception if the node type is not correct.
> [/doc _nodeType]
> [/field]
> 
> [field][kwd]var[/kwd] nodeValue(getNodeValue,setNodeValue) : [[/api/String]]
> [doc _nodeValue]
> Returns the node value. Only works if the Xml node is not an Element or a Document.
> [/doc _nodeValue]
> [/field]
> 
> [field][kwd]var[/kwd] parent(getParent,null) : [[/api/Xml]]
> [doc _parent]
> Returns the parent object in the Xml hierarchy. The parent can be ''null'', an Element or a Document.
> [/doc _parent]
> [/field]
> 
> [field][kwd]function[/kwd] addChild( x : [[/api/Xml]] ) : [[/api/Void]]
> [doc _addChild]
> Adds a child node to the Document or Element. One node can only be inside one given node which is indicated by the ''parent'' property.
> [/doc _addChild]
> [/field]
> 
> [field][kwd]function[/kwd] attributes() : [[/api/Iterator]]<[[/api/String]]>
> [doc _attributes]
> Returns an ''Iterator'' on all the attributes values.
> [/doc _attributes]
> [/field]
> 
> [field][kwd]function[/kwd] elements() : [[/api/Iterator]]<[[/api/Xml]]>
> [doc _elements]
> Returns an iterator of all child nodes which are Elements. Only works if the current node is an Element or a Document.
> [/doc _elements]
> [/field]
> 
> [field][kwd]function[/kwd] elementsNamed( name : [[/api/String]] ) : [[/api/Iterator]]<[[/api/Xml]]>
> [doc _elementsNamed]
> Returns an iterator of all child nodes which are Elements with the given nodeName. Only works if the current node is an Element or a Document.
> [/doc _elementsNamed]
> [/field]
> 
> [field][kwd]function[/kwd] exists( att : [[/api/String]] ) : [[/api/Bool]]
> [doc _exists]
> Tells if the Element node has a given attribute. Attributes are case-sensitive.
> [/doc _exists]
> [/field]
> 
> [field][kwd]function[/kwd] firstChild() : [[/api/Xml]]
> [doc _firstChild]
> Returns the first child node.
> [/doc _firstChild]
> [/field]
> 
> [field][kwd]function[/kwd] firstElement() : [[/api/Xml]]
> [doc _firstElement]
> Returns the first child node which is an Element.
> [/doc _firstElement]
> [/field]
> 
> [field][kwd]function[/kwd] get( att : [[/api/String]] ) : [[/api/String]]
> [doc _get]
> Get the given attribute of an Element node. Returns ''null'' if not found. Attributes are case-sensitive.
> [/doc _get]
> [/field]
> 
> [field][kwd]function[/kwd] insertChild( x : [[/api/Xml]], pos : [[/api/Int]] ) : [[/api/Void]]
> [doc _insertChild]
> Inserts a child at the given position among the other childs.
> [/doc _insertChild]
> [/field]
> 
> [field][kwd]function[/kwd] iterator() : [[/api/Iterator]]<[[/api/Xml]]>
> [doc _iterator]
> Returns an iterator of all child nodes. Only works if the current node is an Element or a Document.
> [/doc _iterator]
> [/field]
> 
> [field][kwd]function[/kwd] remove( att : [[/api/String]] ) : [[/api/Void]]
> [doc _remove]
> Removes an attribute for an Element node. Attributes are case-sensitive.
> [/doc _remove]
> [/field]
> 
> [field][kwd]function[/kwd] removeChild( x : [[/api/Xml]] ) : [[/api/Bool]]
> [doc _removeChild]
> Removes a child from the Document or Element. Returns true if the child was successfuly removed.
> [/doc _removeChild]
> [/field]
> 
> [field][kwd]function[/kwd] set( att : [[/api/String]], value : [[/api/String]] ) : [[/api/Void]]
> [doc _set]
> Set the given attribute value for an Element node. Attributes are case-sensitive.
> [/doc _set]
> [/field]
> 
> [field][kwd]function[/kwd] toString() : [[/api/String]]
> [doc _toString]
> Returns a String representation of the Xml node.
> [/doc _toString]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]var[/kwd] CData(default,null) : [[/api/XmlType]]
> [doc s_CData]
> A type of Xml node.
> [/doc s_CData]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]var[/kwd] Comment(default,null) : [[/api/XmlType]]
> [doc s_Comment]
> A type of Xml node.
> [/doc s_Comment]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]var[/kwd] DocType(default,null) : [[/api/XmlType]]
> [doc s_DocType]
> A type of Xml node.
> [/doc s_DocType]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]var[/kwd] Document(default,null) : [[/api/XmlType]]
> [doc s_Document]
> A type of Xml node.
> [/doc s_Document]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]var[/kwd] Element(default,null) : [[/api/XmlType]]
> [doc s_Element]
> A type of Xml node.
> [/doc s_Element]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]var[/kwd] PCData(default,null) : [[/api/XmlType]]
> [doc s_PCData]
> A type of Xml node.
> [/doc s_PCData]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]var[/kwd] Prolog(default,null) : [[/api/XmlType]]
> [doc s_Prolog]
> A type of Xml node.
> [/doc s_Prolog]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]function[/kwd] createCData( data : [[/api/String]] ) : [[/api/Xml]]
> [doc s_createCData]
> Creates a node of the given type.
> [/doc s_createCData]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]function[/kwd] createComment( data : [[/api/String]] ) : [[/api/Xml]]
> [doc s_createComment]
> Creates a node of the given type.
> [/doc s_createComment]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]function[/kwd] createDocType( data : [[/api/String]] ) : [[/api/Xml]]
> [doc s_createDocType]
> Creates a node of the given type.
> [/doc s_createDocType]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]function[/kwd] createDocument() : [[/api/Xml]]
> [doc s_createDocument]
> Creates a node of the given type.
> [/doc s_createDocument]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]function[/kwd] createElement( name : [[/api/String]] ) : [[/api/Xml]]
> [doc s_createElement]
> Creates a node of the given type.
> [/doc s_createElement]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]function[/kwd] createPCData( data : [[/api/String]] ) : [[/api/Xml]]
> [doc s_createPCData]
> Creates a node of the given type.
> [/doc s_createPCData]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]function[/kwd] createProlog( data : [[/api/String]] ) : [[/api/Xml]]
> [doc s_createProlog]
> Creates a node of the given type.
> [/doc s_createProlog]
> [/field]
> 
> [field][kwd]static[/kwd] [kwd]function[/kwd] parse( s : [[/api/String]] ) : [[/api/Xml]]
> [doc s_parse]
> Parse a String into an Xml object.
> [/doc s_parse]
> [/field]
> 
> [/api]
\ No newline at end of file

	
Ver Date User Action
#19316 2013-05-08 11:14:02 api View | Diff
#17665 2013-02-25 00:00:34 api View | Diff
#15041 2012-07-16 12:30:08 api View | Diff
#13577 2012-04-12 22:32:58 api View | Diff
#11925 2011-11-30 12:17:11 JLM Restored to version #10509
#11869 2011-11-30 11:38:10 Anonymous View | Diff
#10509 2011-04-29 20:26:07 maxim_chepel View | Diff
#9038 2010-08-14 17:13:22 api View | Diff
#8010 2010-02-05 12:06:15 hhoelzer View | Diff
#8006 2010-02-05 11:59:02 hhoelzer View | Diff
#7299 2009-11-26 17:12:30 Greeny View | Diff
#7298 2009-11-26 12:04:51 Greeny View | Diff
#7297 2009-11-26 12:04:00 Greeny View | Diff
#6576 2009-07-26 17:48:40 api View | Diff
#5787 2009-04-16 11:03:23 zjnue View | Diff
#2489 2008-07-28 10:02:53 api View | Diff
#1044 2008-05-02 19:19:23 api View | Diff
#1043 2008-05-02 19:19:23 api Set title to Xml

Previous | Next