[TYPO3-dev] parsing xml

Daniel Pötzinger operation-lan at gmx.de
Wed Mar 19 23:29:10 CET 2008


Steffen Kamper schrieb:
> "Daniel Pötzinger" <operation-lan at gmx.de> schrieb im Newsbeitrag 
> news:mailman.1.1205789626.13436.typo3->>
>> Maybe xml2tree helps you there but the returned array is special.
>>
> takes a long time and the array is very special (you mentioned)
> 
>> Otherwise the best way might be to write your own parsing function to deal 
>> with the format you have using the php xml functions (like xml2array does 
>> it).
>>
> 
> sure, but it doesn't help others. The problem is that this mostly match the 
> certain format and isn't general enough for next time.
> Then the next author needs one too and writes his own a.s.o.
> As xml is a very common fileformat for data exchange it would be so useful 
> to have proper lib for that.
sure..
there are proven common xml apis (DOM and SAX) there is no need for 
reinventing - and of course everybody who needs to parse a special xml 
has to code something - is it array interpreting or interpreting the 
results from XML-SAX parser...




More information about the TYPO3-dev mailing list