 			xml.setNodeKind(_nodeKind);
 			xml.setName(name());
 			xml.setValue(_value);
-			for(i-0;i<_namespaces.length;i++)
+			for(i=0;i<_namespaces.length;i++)
 			{
 				xml.addNamespace(new Namespace(_namespaces[i]));
 			}

		static public function defaultSettings():Object
		{
			return {
			    ignoreComments : true,
			    ignoreProcessingInstructions : true,
			    ignoreWhitespace : true,
			    prettyIndent : 2,
			    prettyPrinting : true
			}
		}
		

		static public function settings():Object
		{
			return {
			    "ignoreComments" : ignoreComments,
			    "ignoreProcessingInstructions" : ignoreProcessingInstructions,
			    "ignoreWhitespace" : ignoreWhitespace,
			    "prettyIndent" : prettyIndent,
			    "prettyPrinting" : prettyPrinting
			}
		}

