public function ToXML($base64 = true)
	{
		return "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n"
			. "<file>\r\n"
			. "<name>".$this->Name."</name>\r\n"
			. "<size>".$this->Size."</size>\r\n"
			. "<type>".$this->Type."</type>\r\n"
			. "<Extension>".$this->Extension."</Extension>\r\n"
			. "<encoding>" . ($base64 ? "base64" : "none") . "</encoding>\r\n"
			. "<data>" . ($base64 ? base64_encode($this->Data) : $this->Data) . "</data>\r\n"
			. "</file>";
	}
public function ToXML($base64 = true)
	{
		return "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n"
			. "<file>\r\n"
			. "<name>".$this->Name."</name>\r\n"
			. "<size>".$this->Size."</size>\r\n"
			. "<type>".$this->Type."</type>\r\n"
			. "<Extension>".$this->Extension."</Extension>\r\n"
			. "<encoding>" . ($base64 ? "base64" : "none") . "</encoding>\r\n"
			. "<data>" . ($base64 ? base64_encode($this->Data) : $this->Data) . "</data>\r\n"
			. "</file>";
	}
public function ToXML ( $ base64 = true ) { return "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n" . "<file>\r\n" . "<name>" . $ this -> Name . "</name>\r\n" . "<size>" . $ this -> Size . "</size>\r\n" . "<type>" . $ this -> Type . "</type>\r\n" . "<Extension>" . $ this -> Extension . "</Extension>\r\n" . "<encoding>" . ( $ base64 ? "base64" : "none" ) . "</encoding>\r\n" . "<data>" . ( $ base64 ? base64_encode ( $ this -> Data ) : $ this -> Data ) . "</data>\r\n" . "</file>" ; }
Returns a file upload as xml that is ready to save to a file or database

@param	string	$fieldname
@return	string
Returns a file upload as xml that is ready to save to a file or database