>
> If you're getting an "error parsing document", then it's usually a
> matter of ext/dom being unable to parse it. This most frequently happens
> if you set the document as XML, but it has invalid markup. One thing to
> note: DOMDocument::loadHTML() is typically *far* more forgiving of
> markup errors than DOMDocument::loadXML() -- so make sure that if you're
> claiming your document is XML or XHTML+XML that it's completely valid
> XML markup.
>
My document was not in fact valid XML, but my document was claiming to be by
starting with "<?xml version="1.0"?>". Removing this solved the problem.
Regards,
Ian
--
View this message in context: http://www.nabble.com/PHPUnit-testing-generating-Zend_Dom_Exception-tp25522644p25523707.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论