tags:

views:

29

answers:

2

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
thanks for your valuable time spend for me
Ajith
A: 

Read in and parse the file, convert it to an array, sort, generate XML, then output.

Or just use XSLT.

Ignacio Vazquez-Abrams
thanks for your valuable time spend for me
Ajith