prettyjersie
New Member
I have a xml file loaded simplexml, and I need to sort the fields by price, or by author or title. How could I do? Is it ok do it using xpath or another way? I saw a similar example here, but I have not very clearXML\[code\]<?xml version="1.0" encoding="UTF-8"?><root> <libro> <autor><![CDATA[Cervantes]]></autor> <titulo><![CDATA[El Quijote]]></titulo> <precio>30