Best way to Populate a ListCtrl throug a xml document

Hi everyone !!

I'm wondering what can be the best way to populate a ListCtrl with a
xml document that describes a mysql table like this:

<table name="test">
        <row id="1">
                <column name="date">2006-03-12</column>
                <column name="average">180</column>
                <column name="max">200</column>
        </row>
        <row id="2">
                <column name="date">2006-03-12</column>
                <column name="average">180</column>
                <column name="max">200</column>
        </row>
  ....
  ....
  ....
</table>

I was looking for recipes and the easiest solution i found was parse it with SAX
transforming it into a python dictionary that i can easy explore populatin the ListCtrl

What do you think??? does wxPython support any easier way ??

Thanks !!!

Use SAX. It takes a bit to get into using initially, but after you do,
you'll be glad you learned it.

- Josiah

···

Felix <felixonta@teleline.es> wrote:

I was looking for recipes and the easiest solution i found was parse it with SAX
transforming it into a python dictionary that i can easy explore populatin the ListCtrl

What do you think??? does wxPython support any easier way ??

Well, i dont believe it was so easy

You have reason im so glad i learned it !!

···

On Wed, 19 Apr 2006 10:35:17 -0700 Josiah Carlson <jcarlson@uci.edu> wrote:

Felix <felixonta@teleline.es> wrote:
> I was looking for recipes and the easiest solution i found was parse it with SAX
> transforming it into a python dictionary that i can easy explore populatin the ListCtrl
>
> What do you think??? does wxPython support any easier way ??

Use SAX. It takes a bit to get into using initially, but after you do,
you'll be glad you learned it.

- Josiah

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org