<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
X-Sender: [EMAIL PROTECTED]
Received: from i-195-137-118-176.freedom2surf.net [195.137.118.176] with
        HTTP/1.1 (POST); Thu, 01 May 2008 18:07:48 +0200
User-Agent: RoundCube Webmail/0.1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit

On Thu, 1 May 2008 17:35:05 +0200, Mattia <[EMAIL PROTECTED]> wrote:
> On Thu, 01 May 2008 16:32:55 +0200
> Daniele Varrazzo <[EMAIL PROTECTED]> wrote:
> 
>> Questo e' un super-hack, ma:
> [snip]
>> fa esattamente quello che chiedi.
> 
> Grazie per la risposta ma pensavo ci fosse qualcosa di più semplice.
> Ho visto che il comando (lsdvd, se interessa) converte l'output in xml.
> Quindi stavo leggendo se minidom sia il modo più semplice per leggere i
> dati.

Per leggere l'xml, in Python il modo piu' semplice e' elementtree.

> Mi sembra strano però che sia più facile fare il parsing di un xml
> piuttosto che di un testo fatto apposta per python.

Il testo che hai mostrato non mi sembra fatto apposta per python: sembra
piu' ruby.

-- 
Daniele Varrazzo - Develer S.r.l.
http://www.develer.com

_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a