Re: [Tutor] Schema change in ElementTree

2010-08-16 Thread Stefan Behnel
> Stefan Behnel wrote: Note that it's best to hit "reply" when responding to other people's postings. That way, mail readers can see the relation between the original posting and the reply and sort the reply into the right thread. Comment to my own posting: as Alan noted already, "reply all" or

Re: [Tutor] Schema change in ElementTree

2010-08-16 Thread Justin Ezequiel
> Note that it's best to hit "reply" when responding to other people's > postings. That way, mail readers can see the relation between the original > posting and the reply and sort the reply into the right thread. > > Stefan how's this? btw, I am getting daily(?) digests of the posts via E-mail an

Re: [Tutor] Schema change in ElementTree

2010-08-16 Thread Alan Gauld
"Stefan Behnel" wrote Note that it's best to hit "reply" when responding to other people's postings. Or on the tutor list make that ReplyAll! :-) Alan G. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: ht

Re: [Tutor] Schema change in ElementTree

2010-08-16 Thread Stefan Behnel
justin.mailingli...@gmail.com, 16.08.2010 10:38: # so that ET preserves your namespaces ET._namespace_map["http://www.w3.org/2001/XMLSchema";] = 'xs' # open your file explicitly specifying the correct mode f = open('testing.xml', 'w') xml_tree.write(f, encoding='UTF-8') f.close() Note that it'

[Tutor] Schema change in ElementTree

2010-08-16 Thread justin . mailinglists
# so that ET preserves your namespaces ET._namespace_map["http://www.w3.org/2001/XMLSchema";] = 'xs' # open your file explicitly specifying the correct mode f = open('testing.xml', 'w') xml_tree.write(f, encoding='UTF-8') f.close() ___ Tutor maillist -

Re: [Tutor] Schema change in ElementTree

2010-08-15 Thread Stefan Behnel
Benjamin Serrato, 16.08.2010 05:51: Hi guys, thanks for you help in the past. I had my first occasion to write a useful script recently editing the contents of an xml file. It was pretty simple, but I have two problems which I know have to take care of by opening in Notepad++ and changing manua

[Tutor] Schema change in ElementTree

2010-08-15 Thread Benjamin Serrato
Hi guys, thanks for you help in the past. I had my first occasion to write a useful script recently editing the contents of an xml file. It was pretty simple, but I have two problems which I know have to take care of by opening in Notepad++ and changing manually. 1. The file output has LF not CR