Robert Kern schrieb: >>> Does anyone know if there's an actual free implementation of this? >> For the dom module in it, xml.dom.minidom should work. Depending on >> your processing needs, that might be sufficient. > > I don't think it quite fits what the OP is asking for. SVG defines some > non-XML > structure for some of its contents. For example: > > <polyline points="100,200 100,100" /> > > The OP is asking for a module that would parse the "points" attribute into a > list: > > [(100.0, 200.0), (100.0, 100.0)]
Sure, but he also specifically asked for an implementation of http://www.w3.org/TR/SVGMobile12/python-binding.html minidom *is* such an implementation (at least of a subset). If I was to implement the entire thing, I'd base it on top of minidom: SVGDocument needs to inherit from Document, and SVGSVGElement needs to inherit from SVGLocatableElement needs to inherit from SVGElement needs to inherit from Element. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list