I
Ivan Voras
As it seems that few people are actually using this, I've made a small
update to xmldict library, available here:
http://ivoras.sharanet.org/xmldict.py.gz
Some border-cases involving empty tags and atributes are resolved, and
examples are updated.
WHAT IS IT
----------
It's a very small (8KB, possibly < 6KB without comments & examples) pure
python parser for XML data. It doesn't care about fancy things like
validation, and will probably break in silly ways on malformed input.
Its only goal is to convert simple XML into nested dictionary-like
structures. You'd be crazy to use it instead of a real parser for
arbitrary XML, but it's perfect for parsing configuration files and the
occasional XML-based network protocol. It uses only sys and re
libraries, but can easily be reworked to be self-sufficient.
Again, test carefully before use, no gurantees that it will work, etc.
Happy hollidays!
update to xmldict library, available here:
http://ivoras.sharanet.org/xmldict.py.gz
Some border-cases involving empty tags and atributes are resolved, and
examples are updated.
WHAT IS IT
----------
It's a very small (8KB, possibly < 6KB without comments & examples) pure
python parser for XML data. It doesn't care about fancy things like
validation, and will probably break in silly ways on malformed input.
Its only goal is to convert simple XML into nested dictionary-like
structures. You'd be crazy to use it instead of a real parser for
arbitrary XML, but it's perfect for parsing configuration files and the
occasional XML-based network protocol. It uses only sys and re
libraries, but can easily be reworked to be self-sufficient.
Again, test carefully before use, no gurantees that it will work, etc.
Happy hollidays!