开发者

XML Sorting with php without XSL

开发者 https://www.devze.com 2022-12-21 11:44 出处:网络
How can we sort a开发者_如何学Pythonn xml file in php without using an xsl?Please helpYou can deserialize your XML document into objects, then sort them and serialize again. Here is the manual for ser

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

精彩评论

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