python - data types for XML parsing -
is there obvious, pythonic way when dealing xml , deciding on kind of data type use? dictionary approach strikes me intuitive, i'm wondering if people deal xml might chime in why dictionary is/isn't approach.
the shortcoming comes mind mutability of dictionary. if know data need, can build dictionaries of suitable size.
below small snippet of data parsing
<issuer>fotokem</issuer> <creator>clipsterdci 4.5.0.24</creator> <id>urn:uuid:6ab4b76e-0e26-4d73-8d01-6f08c96feb71</id> <path>mini-not-norm-usa_adv_f_en-xx_51_2k_spo_20121127_fki_01.mxf</path>
the pythonic way parse xml lxml
.
Comments
Post a Comment