开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜