Prev | Current Page 395 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


Table 8-1
XML Class Static Function Description
static createCData(data:String):Xml Creates node of type CData.
static createComment(data:String):Xml Creates node of type Comment. Not implemented
on Flash 6 to 8.
static createDocType(data:String):Xml Creates node of type DocType. Not implemented
on Flash 6 to 8.
static createDocument():Xml Creates node of type Document.
static createElement(name:String):Xml Creates node of type Element.
static createPCData(data:String):Xml Creates node of type PCData.
static createProlog(data:String):Xml Creates node of type Prolog. Not implemented
on Flash 6 to 8.
static parse(s:String):Xml Creates an XML class instance starting from the
text definition passed as argument. If the
argument is not a well-formed document, an
exception is thrown.
Chapter 8: Cross Platform Tools
207
Table 8-2
Xml Class Instance
Function
Description
addChild(x:Xml) :
Void
Adds a child node to the current one. This function only works if the
current node is of type Element or Document and if the appended node
is of the correct type.


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