XML Sorting with php without XSL
How can we sort a开发者_如何学Pythonn xml file in php without using an xsl?Please help
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
Read in and parse the file, convert it to an array, sort, generate XML, then output.
Or just use XSLT.
精彩评论