Re: How to get an XML DOM while offline?

2008-04-06 Thread Fredrik Lundh
Stefan Behnel wrote: >> Is there a simpler way to read the iTunes XML? (It's merely a plist, >> so the format is much simpler than general XML.) > > Try lxml. Since version 2.0, its parsers will not access the network unless > you tell it to do so. > > http://codespeak.net/lxml which makes it t

Re: How to get an XML DOM while offline?

2008-04-06 Thread Stefan Behnel
william tanksley wrote: > I want to parse my iTunes Library xml. All was well, until I unplugged > and left for the train (where I get most of my personal projects > done). All of a sudden, I discovered that apparently the presence of a > DOCTYPE in the iTunes XML makes xml.dom.minidom insist on ac

Re: How to get an XML DOM while offline?

2008-03-31 Thread william tanksley
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > The most pragmatic solution would be to rip the doctype out using simple > string methods and/or regexes. Thank you, Diez and Paul; I took Diez's solution, and it works well enough for me. > Diez -Wm -- http://mail.python.org/mailman/listinfo/pyth

Re: How to get an XML DOM while offline?

2008-03-19 Thread Paul Boddie
On 19 Mar, 16:27, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > william tanksley wrote: > > I want to parse my iTunes Library xml. All was well, until I unplugged > > and left for the train (where I get most of my personal projects > > done). All of a sudden, I discovered that apparently the pres

Re: How to get an XML DOM while offline?

2008-03-19 Thread Diez B. Roggisch
william tanksley wrote: > I want to parse my iTunes Library xml. All was well, until I unplugged > and left for the train (where I get most of my personal projects > done). All of a sudden, I discovered that apparently the presence of a > DOCTYPE in the iTunes XML makes xml.dom.minidom insist on a

How to get an XML DOM while offline?

2008-03-19 Thread william tanksley
I want to parse my iTunes Library xml. All was well, until I unplugged and left for the train (where I get most of my personal projects done). All of a sudden, I discovered that apparently the presence of a DOCTYPE in the iTunes XML makes xml.dom.minidom insist on accessing the Internet... So sudde