Re: Problem with processing XML

2008-01-23 Thread Paul Boddie
On 23 Jan, 15:12, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > Paul Boddie wrote: > > I'm not disputing the benefits of the ElementTree approach, but one > > has to recall that the DOM is probably the most widely used XML API > > out there (being the one most client-side developers are using) and >

Re: Problem with processing XML

2008-01-23 Thread Stefan Behnel
Hi, Paul Boddie wrote: > I'm not disputing the benefits of the ElementTree approach, but one > has to recall that the DOM is probably the most widely used XML API > out there (being the one most client-side developers are using) and > together with the other standards (XPath and so on) isn't as ba

Re: Problem with processing XML

2008-01-23 Thread Paul Boddie
On 23 Jan, 12:03, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > I had a discussion with Java people lately and they were all for Ruby, Groovy > and similar languages, "because they have curly braces and are easy to learn > when you know Java". > > My take on that is: Python is easy to learn, full-st

Re: Problem with processing XML

2008-01-23 Thread Stefan Behnel
Hi, Paul Boddie wrote: > People will, of course, tell you that you shouldn't use a DOM for > anything and that the "consensus" is to use ElementTree or lxml (see > above), but I can't help feeling that this has a damaging effect on > the XML situation for Python: some newcomers would actually bene

Re: Problem with processing XML

2008-01-22 Thread John Carlyle-Clarke
Paul McGuire wrote: > > Here is a pyparsing hack for your problem. Thanks Paul! This looks like an interesting approach, and once I get my head around the syntax, I'll give it a proper whirl. -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with processing XML

2008-01-22 Thread Paul Boddie
On 22 Jan, 15:11, John Carlyle-Clarke <[EMAIL PROTECTED]> wrote: > > I wrote some code that works on my Linux box using xml.dom.minidom, but > it will not run on the windows box that I really need it on. Python > 2.5.1 on both. > > On the windows machine, it's a clean install of the Python .msi fr

Re: Problem with processing XML

2008-01-22 Thread Alnilam
On Jan 22, 9:11 am, John Carlyle-Clarke <[EMAIL PROTECTED]> wrote: > By the way, is pyxml a live project or not?  Should it still be used? > It's odd that if you go tohttp://www.python.org/and click the link > "Using python for..." XML, it leads you tohttp://pyxml.sourceforge.net/topics/ > > If yo

Re: Problem with processing XML

2008-01-22 Thread Paul McGuire
On Jan 22, 8:11 am, John Carlyle-Clarke <[EMAIL PROTECTED]> wrote: > Hi. > > I'm new to Python and trying to use it to solve a specific problem.  I > have an XML file in which I need to locate a specific text node and > replace the contents with some other text.  The text in question is > actually