Re: [OVC-demo-team] BRP update

From: Eron Lloyd <elloyd_at_lancaster_dot_lib_dot_pa_dot_us>
Date: Sat Mar 06 2004 - 00:13:22 CST

Thanks for the advice, but I guess I wasn't clear on what I meant. Personally
I have no problem parsing/processing XML code per se, but I haven't come
across (or more precisely, spent the time yet finding) the module in CVS with
all the API calls I need to know to:

1. Read in the barcode serial off each paper ballot and translate that into an
XML file on disk
2. Parse the XML file into a useable data structure
3. Validation, etc.?

We also have to decide then how the comparison between the serialized and the
original ballot images will happen. A shallow data-structure would allow
Python to do most of the heavy lifting (I think we started discussing this).
I *could* write something from scratch, but I'm assuming that there is
already stuff I can hook into...

Time for bed!


On Friday 05 March 2004 11:49 pm, Fred McLain wrote:
> Hi Eron,
> On Fri, 2004-03-05 at 07:49, Eron Lloyd wrote:I have no problem tackling
> a majority of this, except for when handing the
> > ballots. I really haven't had a chance to examine the existing XML I/O
> > API yet, only having put code stubs in place in my code thus far. If
> > someone could simply summarize the API, that will help save me time. What
> > would be *extremely* helpful would be a collection of sample ballot.xml
> > files, all with randomly different values that I can test through the
> > BRP.
> One of the sources I've found useful for Python in general is Dive Into
> Python ( which was
> mentioned on this list earlier. There's an XML section at
> that may be of use
> to you. It doesn't do a very good job at describing how to do DOM or
> XPath however. PyXML ( might be a good
> path. I'm sure David and others can give much better pointers on this.
> My day to day work at SchemaLogic ( is
> entirely focused on XML and SOAP. Feel free to send any questions about
> XML parsing my way, on or off the list. Of the different ways to handle
> XML, I suggest you go the XPath route. Don't try to tackle SAX, DOM &
> XPath methods are fine. Speed of development counts for more right now
> then speed of processing.
> -Fred-
> ---
> [This E-mail scanned for viruses by Declude Virus]

[This E-mail scanned for viruses by Declude Virus]
= The content of this message, with the exception of any external 
= quotations under fair use, are released to the Public Domain    
Received on Thu Apr 1 02:40:24 2004

This archive was generated by hypermail 2.1.8 : Thu Apr 01 2004 - 02:40:36 CST