From mailgw at ruralpress.com Fri Mar 6 03:30:06 2009 From: mailgw at ruralpress.com (mailgw at ruralpress.com) Date: Fri, 6 Mar 2009 13:30:06 +1100 (EST) Subject: [XML-SIG] Executable File Violation Message-ID: <20090306023006.1735539800E@mailgw.canberratimes.com.au> You attempted to send a message that contained an executable file. Our company policy prohibits the sending of executable files via email. The message was not delivered. From mike at skew.org Sun Mar 8 05:10:24 2009 From: mike at skew.org (Mike Brown) Date: Sat, 7 Mar 2009 21:10:24 -0700 (MST) Subject: [XML-SIG] need help with removeChild() In-Reply-To: Message-ID: <200903080410.n284AOuD020871@chilled.skew.org> narendar rao wrote: > If we use removeChild(), will it save changes to the file that we are > editing. If it doesn't, can some one show me how to do that. With any XML tree API, be it DOM or lxml or ElementTree or Amara or whatever, you are working with an in-memory model of the document. This model was derived from the original serialized XML (the file) at parse time. Changes to the model are confined to the model; they're in memory only. When you're done making changes, you should produce a new serialization; the means of doing this varies depending on the API you're using, but you can surely search through the API docs or tutorials for how to serialize the tree. You can put that serialization into a file, overwriting the old file if you want. > Can some one help me in writing this code? I won't, but would maybe someone else is feeling more charitable. From narendar.n at gmail.com Wed Mar 11 20:43:13 2009 From: narendar.n at gmail.com (narendar rao) Date: Wed, 11 Mar 2009 15:43:13 -0400 Subject: [XML-SIG] need help with removeChild() In-Reply-To: <200903080410.n284AOuD020871@chilled.skew.org> References: <200903080410.n284AOuD020871@chilled.skew.org> Message-ID: Thanks Mike. I was able to do it. I needed little more understanding on how to do it. thanks, Narender