[TYPO3-dev] parsing xml

Steffen Kamper steffen at sk-typo3.de
Mon Mar 17 22:24:52 CET 2008


"Dmitry Dulepov [typo3]" <dmitry at typo3.org> schrieb im Newsbeitrag 
news:mailman.1.1205786715.29875.typo3-dev at lists.netfielders.de...
> Hi!
>
> Steffen Kamper wrote:
>> i'm searching for xml parsing methods. i only found special functions for 
>> flexforms or "one-dimensional"-xml. There are some routines using own 
>> parsing routines. xml2tree has a huge performance time.
>>
>> What do you use for xml-parsing?
>
> t3lib_div::xml2array()?
>
> -- 

Hi Dmitry,

this doesn't work with xml-arrays, then i only get the first element.
(e.g. rss feed)

Then i have xsd-format like
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:od="urn:schemas-microsoft-com:officedata">
<xsd:schema>
<xsd:element name="dataroot">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="Companys" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="generated" type="xsd:dateTime"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="Companys">
<xsd:annotation>
<xsd:appinfo/>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
...
but this is harder, maybe only work with DomDocument

vg  Steffen 






More information about the TYPO3-dev mailing list