On Sep 3, 6:47 pm, "Edward K. Ream" <[email protected]> wrote:
> The big advantage that lxml claims over ElementTree is that lxml
> supports xpath queries of the xml. That is, using lxml it is possible
> to isolate sub-parts of the svg images.
I would like remove the dependency of lxml. This would make Terry's
work much more easily accessible. Installing lxml is not nearly easy
enough.
Looking again at the code, I see only three uses of xpath. The first
is to find an element. The second ('..') is to find the parent of an
element. The third, in enable_filters, is a bit more complex.
I naively assume that transliterating the present script to
xml.ElementTree would be fairly straightforward. Imo, this work, even
if a bit more difficult than I imagine, would be well worthwhile.
Any comments, Terry, or others?
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.