PHP Classes

sorting a domit parsed xml file

Recommend this page to a friend!

      DOMIT XML parser  >  All threads  >  sorting a domit parsed xml file  >  (Un) Subscribe thread alerts  
Subject:sorting a domit parsed xml file
Summary:sort/display xml domit parsed php variable in a smarty template
Messages:1
Author:dave morris
Date:2006-09-01 10:21:26
 

  1. sorting a domit parsed xml file   Reply   Report abuse  
Picture of dave morris dave morris - 2006-09-01 10:21:26
i have an xml document that is structured like this:

<projects>
<project>
<name>Test Project</name>
<date>2006</date>
<location>Barcelona, Spain</location>
<description><![CDATA[<p>This is a test project description with two paragraphs</p><p>this is the second paragraph</p> ]]></description>
<type>Corporate Garden</type>
<info>this is a field for extra information, about the clients, the size, price, etc...</info>
<directory>test</directory>
<images>
<image name="test.porch.jpg" title="this is image 1." />
<image name="test.firstfloor.jpg" title="this is image 2." />
<image name="test.firstfloor2.jpg" title="this is image 2." />
</images>
<files>
<file />
<file />
</files>
<status>built</status>
</project>
</projects>

and i want to parse it with domit, and be able to output any of the items, sorted by various values, and then output those values in a smarty template... will that work, or should i go with xsl instead?