Prev | Current Page 397 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


firstElement() : Xml Returns the first child node of type Element or null if no elements exist
in the current node. It only works when the current node is of type
Element or Document.
get(att:String) :
String
Returns the value of the attribute with the same name as the passed
argument; if a matching attribute does not exist, null is returned. It only
works when the current node is of type Element.
insertChild(x:Xml,
pos:Int) : Void
Adds a new child node at the specified position. This function only
works if the current node is of type Element or Document and if the
appended node is of the correct type.
iterator() :
Iterator
Returns an Iterator with all the child nodes of the current node. It only
works if the current node is of type Element or Document.
remove(att:String) :
Void
Removes the attribute with the passed name from the current node. If
the attribute does not exist, nothing happens. This function only works
if the current node is of type Element.
removeChild(x:Xml) :
Bool
Removes a child node from the current node.


Pages:
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409