parsing XML

Martin v. Loewis martin at v.loewis.de
Fri May 14 11:15:07 EDT 2010


kaklis at gmail.com wrote:
> Hi to all, let's say we have the following Xml
> <team>
>   <player name='Mick Fowler' age='27' height='1.96m'>
>     <points>17.1</points>
>     <rebounds>6.4</rebounds>
>   </player>
>   <player name='Ivan Ivanovic' age='29' height='2.04m'>
>     <points>15.5</points>
>     <rebounds>7.8</rebounds>
>   </player>
> </team>
> 
> How can i get the players name, age and height?
> DOM or SAX and how

Homework?

Martin



More information about the Python-list mailing list