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

Steffen Kamper info at sk-typo3.de
Mon Aug 25 11:56:20 CEST 2008


Dmitry Dulepov [typo3] schrieb:
> Hi!
> 
> Francois Suter wrote:
>> Problem:
>> The typo3ajax class is designed to handle response data for AJAX calls 
>> and return it in a variety of formats. However the renderAsXML() 
>> method does not check if it has valid XML to return.
>>
>> Solution:
>> Check the response content for XML validity. If it's not valid XML, it 
>> means it's an array and t3lib_div::array2xml is called as a substitute 
>> to produce a valid XML response.
> 
> Does SimpleXML come with PHP by default on Debian and SuSE?
> What is performance impact of this call?
> 
Hi Dmitry,

SimpleXML comes with php5 and is configured with all distributions by 
default, at least all varsions since 5.2. Performance should be no 
problem as parsing of these xml is very fast.

vg Steffen


More information about the TYPO3-team-core mailing list