[Twisted-Python] regarding xml elements

Jean-Paul Calderone exarkun at divmod.com
Fri Mar 28 08:45:06 MDT 2008


On Fri, 28 Mar 2008 10:32:44 -0400, Phil Christensen <phil at bubblehouse.org> wrote:
>On Mar 28, 2008, at 7:44 AM, Raj kumar wrote:
>>Hi,
>>I have an xml file in my application,
>>I have created an element using
>>Example goes like this.........
>>
>>document.createElement("abc")
>>and i appeneded it by using append() method.
>>But how i can reflect this change to my xml file?
>>  and one more thing is i want to create element with some other 
>>parameters....
>>like..............
>>
>>   <abc   m=" "  n=" ">
>>     </abc>
>>and i have m and n values as strings with me..
>>can anybody help me to create this element and write it to the  existing 
>>xml file
>>as a child of an existing element?
>
>It sounds like you're working with t.w.microdom.

If so, stop.

Don't use twisted.web.microdom.  There are plenty of better XML libraries
for Python.

Jean-Paul




More information about the Twisted-Python mailing list