[Fwd: Using cElementTree and elementtree.ElementInclude]

2006-10-27 Thread Mark
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

Using cElementTree and elementtree.ElementInclude

2006-10-23 Thread Mark E. Smith
> 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

Re: Using cElementTree and elementtree.ElementInclude

2006-10-20 Thread Fredrik Lundh
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

Using cElementTree and elementtree.ElementInclude

2006-10-20 Thread Mark
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