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

Francois Suter fsuter at cobweb.ch
Mon Aug 25 14:20:09 CEST 2008


Hi,

> But I fail to see the point of this. Shouldn't be the code around this
> call be responsible for ensuring that the XML is proper?
> 
> It looks to me that this is only needed for debugging. So maybe you can
> turn on "validation" by a switch.

When I first discussed this bug with Benni I was of the mind to just 
call t3lib_div::array2xml($this->content) and be done with it, since 
this was IMO the expected behavior of the typo3ajax::renderAsXML() method.

Benni thought that some people may be using this method with already 
formed XML (as it is the only way to use it in its currently buggy 
state) and may be surprised at the change of behaviour, hence the check 
(for backward-compatibility reasons).

I wonder if this class is really used to render as XML and I would be 
all in favour of not having this test. On the other it could be a 
feature, if people wanted to have a more finely crafted XML than what is 
produced by t3lib_div::array2xml().

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-team-core mailing list