>         def startElement(self, name, attrs):
>                 self.__downstream.startElement(name, attrs)
>                 return

> I want prevent it from shuffling attributes, i.e. preserve original
> file's attribute order. Is there any ContentHandler.features*
> responsible for that?

I suspect not.  attrs is a dictionary which does not maintain order,
and XML attributes are unordered to begin with.  Is there any reason
other than aesthetics that you want the order preserved?  It shouldn't
matter to any upstream consumer of the filtered XML.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to