Validating cElementTrees with lxml

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ryan K

    Validating cElementTrees with lxml

    If I have a cElementTree.El ementTree (or the one from the Standard
    Library), can I use lxml's validation features on it since it
    implements the same ElementTree API?

    Thanks,
    Ryan
  • John Machin

    #2
    Re: Validating cElementTrees with lxml

    On Feb 17, 3:23 pm, Ryan K <ryankas...@gma il.comwrote:
    If I have a cElementTree.El ementTree (or the one from the Standard
    Library), can I use lxml's validation features on it since it
    implements the same ElementTree API?
    >
    I've not used lxml ... the answer depends on whether the lxml
    validation features use only the published API when accessing the
    tree.

    Why not build your tree with lxml?

    Comment

    Working...