The SimpleXMLEncoder class takes ActionScript Objects and encodes them to XML using default serialization.

Constructor

new(myXML:Xml)

Constructor.

Parameters:

myXML

The XML object.

Methods

encodeValue(obj:Dynamic, qname:String, parentNode:Xml):Xml

Encodes an ActionScript object to XML using default serialization.

Parameters:

obj

The ActionScript object to encode.

qname

The qualified name of the child node.

parentNode

An XMLNode under which to put the encoded value.

Returns:

The XMLNode object.