xmlutils.py
xmlutils.py copied to clipboard
xml2sql ignores attributes. this can lead to invalid sql
Example:
<root> <c> <field attr="a">hello</field> <field attr="b">hello</field> </c> </root>
is converted to:
INSERT INTO c (field,field)
VALUES
("hello", "hello");
Proposed fix attached (xml2sql.py)