richard kappler wrote:
> I have an xml file that get's written to as events occur. Each event
> writes a new 'line' of xml to the file, in a specific format, eg:
> sometthing like this:
>
> http://www.w3.org/2001/XMLSchema-instance";
> xsi:noNamespaceSchemaLocation="Logging.xsd" version="1.0">
h
I have an xml file that get's written to as events occur. Each event writes
a new 'line' of xml to the file, in a specific format, eg: sometthing like
this:
http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="Logging.xsd" version="1.0">somestuff
and each 'line' has that sam
Christopher Spears, 14.11.2009 19:47:
> Thanks! I have a lot of XML files at work that users search through. I
> want to parse the XML into a python dictionary and then read the dictionary
> into a database that users can use to search through the thousands of files.
I think "database" is the righ
erything under the "comic" tag.
--- On Sat, 11/14/09, Kent Johnson wrote:
> From: Kent Johnson
> Subject: Re: [Tutor] parsing XML into a python dictionary
> To: "Christopher Spears"
> Cc: tutor@python.org
> Date: Saturday, November 14, 2009, 5:03 AM
&
On Sat, Nov 14, 2009 at 1:14 AM, Christopher Spears
wrote:
> I've been working on a way to parse an XML document and convert it into a
> python dictionary. I want to maintain the hierarchy of the XML. Here is the
> sample XML I have been working on:
>
>
>
> Neil Gaiman
> Glyn Dillon
>
"Christopher Spears" wrote
I've been working on a way to parse an XML document and
convert it into a python dictionary. I want to maintain the hierarchy of
the XML.
Here is the sample XML I have been working on:
Neil Gaiman
Glyn Dillon
Charles Vess
This is my first stab at
I've been working on a way to parse an XML document and convert it into a
python dictionary. I want to maintain the hierarchy of the XML. Here is the
sample XML I have been working on:
Neil Gaiman
Glyn Dillon
Charles Vess
This is my first stab at this:
#!/usr/bin/env pyth
"Stefan Behnel" wrote
Note that ElementTree provides both a SAX-like interface (look for the
'target' property of parsers) and an incremental parser (iterparse).
Interesting, I didn't realise that.
I've only ever used it to build a tree.
XML parsers fall into 2 groups. Those that parse the
Alan Gauld, 10.11.2009 06:53:
> "Christopher Spears" wrote
>> I need to parse several XML documents into a Python dictionary. Is
>> there a module that would be particularly good for this? I heard
>> beginners should start with ElementTree. However, SAX seems to make a
>> little more sense to m
"Christopher Spears" wrote
I need to parse several XML documents into a Python dictionary.
Is there a module that would be particularly good for this?
I heard beginners should start with ElementTree.
However, SAX seems to make a little more sense to me.
XML parsers fall into 2 groups
On Mon, Nov 9, 2009 at 7:48 PM, Christopher Spears wrote:
> Hi!
>
> I need to parse several XML documents into a Python dictionary. Is there a
> module that would be particularly good for this? I heard beginners should
> start with ElementTree. However, SAX seems to make a little more sense to
Hi!
I need to parse several XML documents into a Python dictionary. Is there a
module that would be particularly good for this? I heard beginners should
start with ElementTree. However, SAX seems to make a little more sense to me.
Any suggestions?
__
12 matches
Mail list logo