private function varIsXmlResource($var) {
			$xml_parser=xml_parser_create();
			xml_parser_set_option($xml_parser,XML_OPTION_CASE_FOLDING,0);
			xml_set_element_handler($xml_parser,array(&$this,"xmlStartElement"),array(&$this,"xmlEndElement"));
			xml_set_character_data_handler($xml_parser,array(&$this,"xmlCharacterData"));
			xml_set_default_handler($xml_parser,array(&$this,"xmlDefaultHandler"));

			$this->makeTableHeader("xml","xml document",2);
			$this->makeTDHeader("xml","xmlRoot");

		//attempt to open xml file
			$bFile=(!($fp=@fopen($var,"r"))) ? false : true;

		//read xml file
			if($bFile) {
				while($data=str_replace("\n","",fread($fp,4096)))
					$this->xmlParse($xml_parser,$data,feof($fp));
			}
		//if xml is not a file, attempt to read it as a string
			else {
				if(!is_string($var)) {
					echo $this->error("xml").$this->closeTDRow()."</table>\n";
					return;
				}
				$data=$var;
				$this->xmlParse($xml_parser,$data,1);
			}

			echo $this->closeTDRow()."</table>\n";

		}