Original Message
Subject: Using cElementTree and elementtree.ElementInclude
Date: Mon, 23 Oct 2006 09:40:24 -0500
From: Mark E. Smith <[EMAIL PROTECTED]>
Organization: AEDC
To: python-list@python.org
> cElementTree cannot hold ElementTree instances.
>
> can y
> cElementTree cannot hold ElementTree instances.
>
> can you post a small but self-contained example showing how you got this
> error?
>
#from elementtree.ElementTree import ElementTree, dump # This works
from cElementTree import ElementTree, dump # This does not
from elementtree import
Mark wrote:
> I have an elementtree created with cElementTree. I then use
> ElementInclude to resolve some xinclude elements. But then I want to
> move those included elements to be children of the root
>
> root.append(included_child)
>
> but I get an error message
>
> TypeError: 'append() ar
I have an elementtree created with cElementTree. I then use
ElementInclude to resolve some xinclude elements. But then I want to
move those included elements to be children of the root
root.append(included_child)
but I get an error message
TypeError: 'append() argument 1 must be Element, not i