[TYPO3-core] RFC: Bug #9217: typo3ajax::renderAsXML does not always render XML

Steffen Kamper info at sk-typo3.de
Sun Aug 24 16:14:52 CEST 2008


Martin Kutschker schrieb:
> To be valid it must be well-formed. But you don't want to validate
> against a DTD or a schema, you are only interested if it's well formed.
> 
> But it's strange that broken XML data doesn't trigger an error of some kind.
> 

Hi Masi,

indeed XMLReader::isValid() only checks validity against DTD scheme.
The error or the warning is triggered only while parsing with
XMLReader->read() but missing is a flag if it fails because of bad 
forming. Do you know a way to catch the php-warning to get the state?

vg Steffen


More information about the TYPO3-team-core mailing list