         if (obj == null)
             return null;
 
-		// Skip properties that are functions
+        // Skip properties that are functions
         var typeType:uint = getDataTypeFromObject(obj);
         if (typeType == SimpleXMLEncoder.FUNCTION_TYPE)
             return null;

        this.myXMLDoc = myXML ? myXML : new XMLDocument();
    }

	//--------------------------------------------------------------------------
	//
	//  Variables
	//
	//--------------------------------------------------------------------------

    private var myXMLDoc:XMLDocument;

	//--------------------------------------------------------------------------
	//
	//  Methods
	//
	//--------------------------------------------------------------------------

    /**
     * Encodes an ActionScript object to XML using default serialization.
     * 
     * @param obj The ActionScript object to encode.
     * 
     * @param qname The qualified name of the child node.
     * 
     * @param parentNode An XMLNode under which to put the encoded
     * value.
     *  
     *  @langversion 3.0
     *  @playerversion Flash 9

        if (typeType == SimpleXMLEncoder.OBJECT_TYPE)
        {
            var classInfo:Object = ObjectUtil.getClassInfo(obj, null, CLASS_INFO_OPTIONS);
            var properties:Array = classInfo.properties;
            var pCount:uint = properties.length;
            for (var p:uint = 0; p < pCount; p++)
            {
                var fieldName:String = properties[p];
                var propQName:QName = new QName("", fieldName);
                encodeValue(obj[fieldName], propQName, myElement);
            }
        }
        else if (typeType == SimpleXMLEncoder.ARRAY_TYPE)
        {
