Re: Python and XML Help

2009-04-17 Thread ookrin
On Apr 15, 9:43 am, Scott David Daniels wrote: > ookrin wrote: > > I am still learning. And it's not that I won't take the advice > > for using ElementTree, I just currently don't know anything about it. > > I just didn't want to say, "I have no idea what you're talking about!" > > to Scott c

Re: Python and XML Help

2009-04-15 Thread Scott David Daniels
ookrin wrote: I am still learning. And it's not that I won't take the advice for using ElementTree, I just currently don't know anything about it. I just didn't want to say, "I have no idea what you're talking about!" to Scott cause I figured that would be rude, but I guess so is not saying

Re: Python and XML Help

2009-04-14 Thread John Machin
On Apr 15, 2:25 pm, ookrin wrote: > > > Seeing the errors - I changed the two classes to this: > > class offlineLoad(): >     def loadXmlFile(self): >         print "Loading from File" >         xf = open('CharacterID.xml','r') >         xml = xmlHandler() >         saxparser = make_parser() >    

Re: Python and XML Help

2009-04-14 Thread ookrin
On Apr 14, 8:15 pm, John Machin wrote: > On Apr 15, 12:29 pm, ookrin wrote: > > > > > On Apr 12, 12:51 am, "Diez B. Roggisch" wrote: > > > > ookrin schrieb: > > > > > I'm in the process of learning python and PyQt4. I had decided to make > > > > myself a simple app and soon discovered that I nee

Re: Python and XML Help

2009-04-14 Thread John Machin
On Apr 15, 12:29 pm, ookrin wrote: > On Apr 12, 12:51 am, "Diez B. Roggisch" wrote: > > > > > ookrin schrieb: > > > > I'm in the process of learning python and PyQt4. I had decided to make > > > myself a simple app and soon discovered that I needed to crash into > > > xml to use some of the data

Re: Python and XML Help

2009-04-14 Thread ookrin
On Apr 12, 12:51 am, "Diez B. Roggisch" wrote: > ookrin schrieb: > > > > > I'm in the process of learning python and PyQt4. I had decided to make > > myself a simple app and soon discovered that I needed to crash into > > xml to use some of the data I was going to be getting off of the > > server.

Re: Python and XML Help

2009-04-13 Thread Scott David Daniels
ookrin wrote: I'm in the process of learning python and PyQt4. I had decided to make myself a simple app and soon discovered that I needed to crash into xml to use some of the data I was going to be getting off of the server. I picked up enough xml to use the sax parser to get the data out of th

Re: Python and XML Help

2009-04-12 Thread Diez B. Roggisch
ookrin schrieb: I'm in the process of learning python and PyQt4. I had decided to make myself a simple app and soon discovered that I needed to crash into xml to use some of the data I was going to be getting off of the server. I picked up enough xml to use the sax parser to get the data out of

Python and XML Help

2009-04-11 Thread ookrin
I'm in the process of learning python and PyQt4. I had decided to make myself a simple app and soon discovered that I needed to crash into xml to use some of the data I was going to be getting off of the server. I picked up enough xml to use the sax parser to get the data out of the xml. I can get

still don't get unicode and xml - help!

2006-05-16 Thread jmdeschamps
I have to work with XML data containing accented characters (ISO-8859-1 encoding) Using ElementTree, the only way i found to get the text attribute of a node was to encode it individually, if you want. It doubles the amount of time to process :-( i surely doing this wrong... What is the good way to

Re: XML help

2005-06-05 Thread Diez B. Roggisch
> > I've managed to test for specific elements and extract values. I want to > place the reults in arrays with array index equal to element ID. So as I > walk the tree I temporarily store IDs and DeptValues in lists. I'm ok so > far. I then intend to create an array of size determined by the maxim

XML help

2005-06-05 Thread chris
I'm 4 months new to python and 4 hours new to XML. I've been trying to understand and use the DOM tree walk sample shown at this site: http://www.rexx.com/~dkuhlman/pyxmlfaq.html to walk through an xml file from which I need to extract data for subsequent plotting. I've repeated the functions from