Re: Python script to optimize XML text

2007-09-25 Thread Gabriel Genellina
En Tue, 25 Sep 2007 11:43:03 -0300, Robert Dailey <[EMAIL PROTECTED]> escribi�: > Thanks for everyone's input. I wanted to learn regular expressions, > however > I'm finding them to be quite evil. I think I've learned that it's always > a > good idea to make regex a very LAST resort. This is

Re: Python script to optimize XML text

2007-09-25 Thread Robert Dailey
Hey guys, Thanks for everyone's input. I wanted to learn regular expressions, however I'm finding them to be quite evil. I think I've learned that it's always a good idea to make regex a very LAST resort. This is my opinion I'm developing on. In any case, I like the ideas mentioned here concerning

Re: Python script to optimize XML text

2007-09-25 Thread Stefan Behnel
Gabriel Genellina wrote: > En Mon, 24 Sep 2007 17:36:05 -0300, Robert Dailey <[EMAIL PROTECTED]> > escribi�: > >> I'm currently seeking a python script that provides a way of >> optimizing out >> useless characters in an XML document to provide the optimal size for the >> file. For example, assume

Re: Python script to optimize XML text

2007-09-24 Thread Gabriel Genellina
En Mon, 24 Sep 2007 17:36:05 -0300, Robert Dailey <[EMAIL PROTECTED]> escribi�: > I'm currently seeking a python script that provides a way of optimizing > out > useless characters in an XML document to provide the optimal size for the > file. For example, assume the following XML script: > >

Re: [lxml-dev] Python script to optimize XML text

2007-09-24 Thread Sidnei da Silva
If your XML is well-formed, a XSLT is probably your best choice. I believe even the most trivial 'pass through' example might produce the output you expect here. -- Sidnei da Silva Enfold Systemshttp://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 -- ht

Python script to optimize XML text

2007-09-24 Thread Robert Dailey
Hi, I'm currently seeking a python script that provides a way of optimizing out useless characters in an XML document to provide the optimal size for the file. For example, assume the following XML script: By running this through an XML optimizer, the file would appear as: N