
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?