Re: Search and replace text in XML file?

2012-07-28 Thread Terry Reedy
On 7/27/2012 9:23 PM, todd.tab...@gmail.com wrote: I'm looking to search an entire XML file for specific text and replace that text, while maintaining the structure of the XML file. For a one-off project, or for experimentation, I would use a proper text-editor* and run through with search/rep

Re: Search and replace text in XML file?

2012-07-28 Thread Mark Lawrence
On 28/07/2012 08:17, Terry Reedy wrote: On 7/27/2012 9:23 PM, todd.tab...@gmail.com wrote: I'm looking to search an entire XML file for specific text and replace that text, while maintaining the structure of the XML file. For a one-off project, or for experimentation, I would use a proper text

OT: Text editors (was Re: Search and replace text in XML file?)

2012-07-28 Thread Chris Angelico
On Sat, Jul 28, 2012 at 6:29 PM, Mark Lawrence wrote: > I highly recommend the use of notepad++. If anyone knows of a better text > editor for Windows please let me know :) My current preference is SciTE, available on Linux and Windows both. It's configured using Lua, has lexers (and thus syntax

Re: Search and replace text in XML file?

2012-07-28 Thread MRAB
On 28/07/2012 09:29, Mark Lawrence wrote: On 28/07/2012 08:17, Terry Reedy wrote: On 7/27/2012 9:23 PM, todd.tab...@gmail.com wrote: I'm looking to search an entire XML file for specific text and replace that text, while maintaining the structure of the XML file. For a one-off project, or for

Re: OT: Text editors (was Re: Search and replace text in XML file?)

2012-07-28 Thread Alister
On Sun, 29 Jul 2012 01:51:48 +1000, Chris Angelico wrote: > On Sat, Jul 28, 2012 at 6:29 PM, Mark Lawrence > wrote: >> I highly recommend the use of notepad++. If anyone knows of a better >> text editor for Windows please let me know :) > > My current preference is SciTE, available on Linux and

PyCon UK 2012 - Call for talks

2012-07-28 Thread Zeth
PyCon UK 2012 - Call for talks Please forward this email to relevant lists, social networks, etc. PyCon UK 2012, the UK's official Python conference, returns from the 28th September to 1st October, Coventry UK. This volunteer run and organised conference includes sprints, training, open spac

Re: OT: Text editors (was Re: Search and replace text in XML file?)

2012-07-28 Thread wxjmfauth
On Saturday, July 28, 2012 5:51:48 PM UTC+2, Chris Angelico wrote: ... and has a few limitations (eg it only really supports > > UTF-8), ?! It's my daily plain text editor (Windows) since ? (I don't remember). And I'm using it for utf-8, utf-16 and cp1252 (my favorite coding) without problems.

Re: OT: Text editors (was Re: Search and replace text in XML file?)

2012-07-28 Thread Chris Angelico
On Sun, Jul 29, 2012 at 3:43 AM, wrote: > On Saturday, July 28, 2012 5:51:48 PM UTC+2, Chris Angelico wrote: > > ... and has a few limitations (eg it only really supports >> >> UTF-8), > > ?! > > It's my daily plain text editor (Windows) since ? (I don't remember). > And I'm using it for utf-8, u

Re: OT: Text editors (was Re: Search and replace text in XML file?)

2012-07-28 Thread Tim Chase
On Sat, Jul 28, 2012 at 6:29 PM, Mark Lawrence wrote: > I highly recommend the use of notepad++. If anyone knows of a > better text editor for Windows please let me know :) I'll advocate for Vim which is crazy-powerful and works nicely on just about any platform I touch. Others will advocate for

Re: OT: Text editors (was Re: Search and replace text in XML file?)

2012-07-28 Thread wxjmfauth
On Saturday, July 28, 2012 7:47:24 PM UTC+2, Chris Angelico wrote: > On Sun, Jul 29, 2012 at 3:43 AM, wrote: > > > On Saturday, July 28, 2012 5:51:48 PM UTC+2, Chris Angelico wrote: > > > > > > ... and has a few limitations (eg it only really supports > > >> > > >> UTF-8), > > > > > > ?! >

Re: OT: Text editors (was Re: Search and replace text in XML file?)

2012-07-28 Thread hamilton
On 7/28/2012 1:23 PM, wxjmfa...@gmail.com wrote: For info: http://scintilla.org/ Just did a quick check on scintilla. This looks like a single file editor. Is there a project like capability in there that I did not notice ? Thanks hamilton -- http://mail.python.org/mailman/listinfo/python

Re: Search and replace text in XML file?

2012-07-28 Thread Tim Roberts
todd.tab...@gmail.com wrote: > >I basically need to replace every occurrence C:\Program Files with >C:\Program Files (x86), regardless of location. For example, that >text appears within: >C:\Program Files\\Map Data\Road_Centerlines.shp >and also within: >C:\Program >Files\Templates\RoadNetwork

Re: OT: Text editors (was Re: Search and replace text in XML file?)

2012-07-28 Thread Chris Angelico
On Sun, Jul 29, 2012 at 7:43 AM, hamilton wrote: > On 7/28/2012 1:23 PM, wxjmfa...@gmail.com wrote: >> >> For info: http://scintilla.org/ > > > Just did a quick check on scintilla. > > This looks like a single file editor. > > Is there a project like capability in there that I did not notice ? Sc

ANN: pythonpackages.com beta

2012-07-28 Thread Alex Clark
Hi Python folks, I am reaching out to various Python-related programming communities in order to offer new help packaging your software. If you have ever struggled with packaging and releasing Python software (e.g. to PyPI), please check out this service: - http://pythonpackages.com The

Re: How to represent dates BC

2012-07-28 Thread jwp
On Tuesday, July 24, 2012 2:55:29 AM UTC-7, Laszlo Nagy wrote: > >>> conn.getqueryvalue("select '1311-03-14 BC'::date") > What is the good representation here? Should I implement my own date Do your datetime formatting in postgres: "select '1311-03-14 BC'::date::text" PG does have a have a reas

Re: OT: Text editors (was Re: Search and replace text in XML file?)

2012-07-28 Thread hamilton
On 7/28/2012 4:42 PM, Chris Angelico wrote: On Sun, Jul 29, 2012 at 7:43 AM, hamilton wrote: On 7/28/2012 1:23 PM, wxjmfa...@gmail.com wrote: For info: http://scintilla.org/ Just did a quick check on scintilla. This looks like a single file editor. Is there a project like capability in t

Re: OT: Text editors (was Re: Search and replace text in XML file?)

2012-07-28 Thread Chris Angelico
On Sun, Jul 29, 2012 at 12:33 PM, hamilton wrote: > Ok, so the answer is no. In terms of the editor, it's fine; you need only worry about Scintilla itself if you're aiming to incorporate it in your own program. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Text editors

2012-07-28 Thread Ben Finney
Tim Chase writes: > On Sat, Jul 28, 2012 at 6:29 PM, Mark Lawrence wrote: > > I highly recommend the use of notepad++. If anyone knows of a > > better text editor for Windows please let me know :) I highly recommend not tying your editor skills to a single OS, especially one as ornery for progr

Re: OT: Text editors

2012-07-28 Thread rusi
On Jul 29, 10:08 am, Ben Finney wrote: > Tim Chase writes: > > On Sat, Jul 28, 2012 at 6:29 PM, Mark Lawrence wrote: > > > I highly recommend the use of notepad++.  If anyone knows of a > > > better text editor for Windows please let me know :) I would have bet Mark was ribbing the folks on this