By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,441 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,441 IT Pros & Developers. It's quick & easy.

Using cElementTree and elementtree.ElementInclude

P: n/a
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 instance'
The type of included_child is 'instance'. The type of the cElementTree
children is 'Element'. How do I resolve this conflict? I am using
cElementTree version 1.0.3 and elementtree version 1.2.6 and python
version 2.3.4. Will later versions correct the problem?

Thanks,
Mark
Oct 20 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.