Re: [Tutor] XML: Expletive Deleted (OT)

2006-06-16 Thread Alan Gauld
> [ The only SOA/XML book that addresses this side of XML usage > is the excellent "SOA - A Field Guide" by Peter Erls. Erls also > suggests some mitigating strategies to get round it.] Oops, don't rely on memory... That is Thomas Erl not Peter Erls. And of course there may be other SOAP/XML boo

Re: [Tutor] XML: Expletive Deleted (OT)

2006-06-15 Thread Alan Gauld
Just picked this up after being out for most of the week... "Carroll, Barry" <[EMAIL PROTECTED]> wrote in message > One reason to for choosing a human-readable format is the desire to > visually confirm the correctness of the stored data and format. Thats a very dangerous asumption, how do you d

Re: [Tutor] XML: Expletive Deleted (OT)

2006-06-12 Thread Kent Johnson
Carroll, Barry wrote: > So here's my off-topic question: Ajax is being touted as the 'best-known > method' (BKM) for making dynamic browser-based applications, and XML is > the BKM for transferring data in Ajax land. If XML is a bad idea for > network data-transfer, what medium should be used inst

Re: [Tutor] XML: Expletive Deleted (OT)

2006-06-12 Thread Carroll, Barry
Alan, Ralph, et al: This is a little off-topic, I guess, being not directly related to Python. Oh, well. Here are a couple of personal opinions and a question about XML. > -Original Message- > Date: Sun, 11 Jun 2006 08:55:17 +0100 > From: "Alan Gauld" <[EMAIL PROTECTED]> > Subject: Re:

Re: [Tutor] XML: Expletive Deleted

2006-06-12 Thread doug shawhan
Kent, Danny, Lawrence, et. al. Thanks! I was kind of cringing as I sent this plaint/rant, but it seems I'm not the only one who has had trouble grokking DOM. I spanked the problem temporarily with regex, but can now actually fix it properly. Appreciate all the help!On 6/10/06, Kent Johnson <[

Re: [Tutor] XML: Expletive Deleted

2006-06-10 Thread Kent Johnson
In my opinion the standard DOM models are the most awkward way to deal with XML. If you are trying to get data from HTML on a web page, look at BeautifulSoup. For general XML processing, look at ElementTree. They are both simpler than DOM. http://www.crummy.com/software/BeautifulSoup/ http://eff

Re: [Tutor] XML: Expletive Deleted

2006-06-09 Thread lawrence wang
> >> for item in itemIDs: > >> print item > > yeilds > > > > > > > > Okay, no problem. Now all I have to do is figure out which > particlular.string.of.words.interconnected.by.periods to > pass to extract the values. > > >> for item in itemIDs: > >> print item.nodeValue > > Se

Re: [Tutor] XML: Expletive Deleted

2006-06-09 Thread Danny Yoo
>>> from xml.dom.minidom import parse, parseString > >>> data = response.read() >>> connection.close() >>> response = parseString(data) >>> itemIDs = response.getElementsByTagName("ItemID") >>> response.unlink() ^ Hi Doug, What's going on here? Why unlink()? > Okay, no p

[Tutor] XML: Expletive Deleted

2006-06-09 Thread doug shawhan
I realize XML is going to save us all from something or other, but I just can't get my head around it. I have been trying to do what should be a very simple action: Extract values from element tags. I first grab my data from a website with httplib: >> connection = httplib.HTTPSConnection(serve