How can we sort an xml file in php without using an xsl?Please help
A:
You can deserialize your XML document into objects, then sort them and serialize again. Here is the manual for serialization: http://php.net/manual/en/function.serialize.php
anthares
2010-02-23 08:17:39
thanks for your valuable time spend for me
Ajith
2010-02-23 08:23:41
A:
Read in and parse the file, convert it to an array, sort, generate XML, then output.
Or just use XSLT.
Ignacio Vazquez-Abrams
2010-02-23 08:18:03