Hi, I'm using amchart to make graphics, I need to generate an XML like this:

<chart>
<graphs>
<graph gid="1">
 <value xid="100" color="#318DBD">-0.307</value>
<value xid="101" color="#318DBD">-0.168</value>
 <value xid="102" color="#318DBD">-0.073</value>
<value xid="103" color="#318DBD">-0.027</value>
 <value xid="104" color="#318DBD">-0.251</value>

But:

       $parsed = array(
            'chart'=>array(
                'graphs'=>array(
                    array(
                        'graph'=>array(
                                'gid'=>1,
                                'value'=>array(
                                    array(
                                        'xid'=>'100',
                                        array(5)
                                    )
                                )
                        )
                    )
                )
            )
        );
is generating:

<chart>
<graphs>
<graph gid="1">
<value xid="100">
<value>5</value>
</value></graph>
</graphs>
</chart>

I don't want that duplicated 'value' tag. Can anyone help me?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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

Reply via email to