[BangPypers] (no subject)

Vineet Naik naikvin at gmail.com
Tue Sep 24 14:18:43 CEST 2013


Hi,

On Tue, Sep 24, 2013 at 10:38 AM, bab mis <babmis at outlook.com> wrote:

> Hi ,Any XML parser which gives the same kind of data structure as yaml
> parser gives in python.  Tried with xmlmindom but ir's not of a proper
> datastrucure ,every time i need to read by element and create the dict.
>

You can try xmltodict[1]. It also retains the node attributes and makes
than accessible using the '@' prefix (See the example in README of the repo)

[1]: https://github.com/martinblech/xmltodict


> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>



-- 
Vineet Naik


More information about the BangPypers mailing list