I am writing an XML generator per my manager's request. For less typings' sake, I decided using ElementTree as parser and SimpleXMLWriter as writer.
The result XML require attributes named "class". e.g.
<Node class="oops"></Node>
As the official tutorial suggested, to write an XML node just use this method:
w.element("meta", name="generator", value="my application 1.0")
So I wrote:
w.element("Node", class="oops")
python fails yawning SyntaxError. Any help?