hi there..

i have an xml file which was generated by me from an array by cakephp
function xml->compose(true)

<?xml version="1.0" encoding="UTF-8" ?>
<category id="255" name="accomodation" relation="5">
<concept id="249" name="hotel" />
<concept id="277" name="inn" />
<concept id="289" name="appartement" />
<concept id="301" name="homestay" />
<concept id="313" name="transportation" />
<concept id="325" name="bali" />
<concept id="337" name="tokyo" />
</category>
<category id="313" name="transportation" relation="5">
<concept id="137" name="car" />
<concept id="349" name="bike" />
</category>
<category id="207" name="food" relation="5">
<concept id="361" name="pancake" />
<concept id="373" name="burger" />
<concept id="385" name="pie" />
</category>
<category id="246" name="activity" relation="5">
<concept id="406" name="eat" />
<concept id="245" name="stay" />
</category>

now how can i turn it back to array?

i tried to use, $array =  Set::reverse(new Xml('myfle.xml'));
but the result just give me one index of array like this..

Array
(
    [Category] => Array
        (
            [id] => 255
            [name] => accomodation
            [relation] => 5
            [Concept] => Array
                (
                    [id] => 337
                    [name] => tokyo
                )

        )

)

as you can see, the concept just only one there..
any help please?

thanks before,


Widi

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to