Packagemx.rpc.xml
Classpublic class SimpleXMLEncoder
InheritanceSimpleXMLEncoder Inheritance Object

The SimpleXMLEncoder class take ActionScript Objects and encodes them to XML. Use default serialization.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
  
SimpleXMLEncoder
  
encodeDate(rawDate:Date, dateType:String):String
[static]
SimpleXMLEncoder
  
encodeValue(obj:Object, qname:QName, parentNode:XMLNode):XMLNode
parentNode - optional, an XMLNode under which to put the encoded value.
SimpleXMLEncoder
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Constructor Detail
SimpleXMLEncoder()Constructor
public function SimpleXMLEncoder(myXML:XMLDocument) Parameters
myXML:XMLDocument
Method Detail
encodeDate()method
public static function encodeDate(rawDate:Date, dateType:String):String

Parameters

rawDate:Date
 
dateType:String

Returns
String
encodeValue()method 
public function encodeValue(obj:Object, qname:QName, parentNode:XMLNode):XMLNode

parentNode - optional, an XMLNode under which to put the encoded value. If this is present, we will be able to use namespace prefixes already defined above the encoded object - if not, a well-formed XML document including all NS declarations necessary is returned.

Parameters

obj:Object
 
qname:QName
 
parentNode:XMLNode

Returns
XMLNode