Re: Using ElementTree to tidy up an XML string to my liking

2006-02-27 Thread Magnus Lycka
Richard Townsend wrote: > On Fri, 24 Feb 2006 18:21:59 +0100, Magnus Lycka wrote: >>Concerning element names, it's your coice of course, but I agree >>more and more with Guido and PEP008 that camelCase is ugly. (Not >>that ALLCAPS is better...) > > I can see in PEP008 where it says Capitalized_Wor

Re: Using ElementTree to tidy up an XML string to my liking

2006-02-25 Thread Richard Townsend
On Fri, 24 Feb 2006 18:21:59 +0100, Magnus Lycka wrote: > Concerning element names, it's your coice of course, but I agree > more and more with Guido and PEP008 that camelCase is ugly. (Not > that ALLCAPS is better...) I can see in PEP008 where it says Capitalized_Words_With_Underscores is ugly,

Re: Using ElementTree to tidy up an XML string to my liking

2006-02-24 Thread Heikki Toivonen
[EMAIL PROTECTED] wrote: > Yes I am but, I'm using a DOM Serializer in Firefox which for some > reason turns myCamelNames into MYCAMELNAMES for the nodenames. I'll > therefore need to control the case-spelling of these things as I'm > formatting the XML string. I am almost certain there is somethi

Re: Using ElementTree to tidy up an XML string to my liking

2006-02-24 Thread Magnus Lycka
[EMAIL PROTECTED] wrote: > Yes I am but, I'm using a DOM Serializer in Firefox which for some > reason turns myCamelNames into MYCAMELNAMES for the nodenames. I'll > therefore need to control the case-spelling of these things as I'm > formatting the XML string. I realize that it's difficult to mak

Re: Using ElementTree to tidy up an XML string to my liking

2006-02-24 Thread [EMAIL PROTECTED]
Yes I am but, I'm using a DOM Serializer in Firefox which for some reason turns myCamelNames into MYCAMELNAMES for the nodenames. I'll therefore need to control the case-spelling of these things as I'm formatting the XML string. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using ElementTree to tidy up an XML string to my liking

2006-02-23 Thread Simon Dahlbacka
..I hope that you are aware that xml is *case sensitive* -- http://mail.python.org/mailman/listinfo/python-list

Using ElementTree to tidy up an XML string to my liking

2006-02-23 Thread [EMAIL PROTECTED]
I have an XML string coming in from one system that I'd like to tidy up and return in a very particular format. I'm picky! If the input is Then the output must be The file might have comments and namespaces and all of this should be preserved as it was when it came in. I was hoping to use Ele