         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);
-			}
+            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)
         {

    private function getDataTypeFromObject(obj:Object):uint
    {
        if (obj is Number)
        	return SimpleXMLEncoder.NUMBER_TYPE;
        else if (obj is Boolean)
        	return SimpleXMLEncoder.BOOLEAN_TYPE;
        else if (obj is String)
        	return SimpleXMLEncoder.STRING_TYPE;
        else if (obj is XMLDocument)
			return SimpleXMLEncoder.XML_TYPE;
		else if (obj is Date)
			return SimpleXMLEncoder.DATE_TYPE;
		else if (obj is Array)
			return SimpleXMLEncoder.ARRAY_TYPE;
        else if (obj is Function)
            return SimpleXMLEncoder.FUNCTION_TYPE;
		else if (obj is Object)
            return SimpleXMLEncoder.OBJECT_TYPE;
        else
            // Otherwise force it to string
        	return SimpleXMLEncoder.STRING_TYPE;
    }



        return s;
    }

    //--------------------------------------------------------------------------
    //
    //  Constructor
    //
    //--------------------------------------------------------------------------

    /**
     *  Constructor.
     *
     *  @param myXML The XML object.
     */
    public function SimpleXMLEncoder(myXML:XMLDocument)
    {
        super();
