Re: generating nested xml from mysql

From: Date: Sat, 18 Oct 2003 05:25:11 +0000
Subject: Re: generating nested xml from mysql
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166598@lists.php.net to get a copy of this message
Hello, On 10/16/2003 05:33 AM, daniel@electroteque.org wrote:
Hi there i am having a problem generating nested xml from mysql My class is ok with one loop. But there is a problem when i want to do a query and within that loop result do another query. More specifically i want my xml to look like this. <menu>
    <top_menu>
        <title></title>
        <sub_menu>
           <title></title>
        </sub_menu>
    </top_menu>
</menu> where top menu gets the first loop and sub menu is the second query within the first query. Let me know thanks
And what is your difficulty in generating nested XML? Have you tried this class? http://www.phpclasses.org/xmlwriter -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/

« previous php.general (#166598) next »