QuickBooks/XML/Parser.php
public function parse(&$errnum, &$errmsg)
	{
		if (!strlen($this->_xml))
		{
			$errnum = QuickBooks_XML::ERROR_CONTENT;
			$errmsg = 'No XML content to parse.';
			return false;
		}

		// first, let's remove all of the comments
		if ($this->validate($errnum, $errmsg))
		{
			return $this->_backend->parse($errnum, $errmsg);
		}

		return false;
	}
public function parse(&$errnum, &$errmsg)
	{
		if (!strlen($this->_xml))
		{
			$errnum = QuickBooks_XML::ERROR_CONTENT;
			$errmsg = 'No XML content to parse.';
			return false;
		}

		// first, let's remove all of the comments
		if ($this->validate($errnum, $errmsg))
		{
			return $this->_backend->parse($errnum, $errmsg);
		}

		return false;
	}
Parse an XML document into an XML node structure

This function returns either a QuickBooks_XML_Document on success, or false
on failure. You can use the ->validate() method first so you can tell
whether or not the parser will succeed.

@param integer $errnum
@param string $errmsg
@return QuickBooks_XML_Document