Re: Parsing XML and storing attributes in MySQL using Perl
- From: robic0
- Date: Mon, 12 Jun 2006 14:26:29 -0700
On 12 Jun 2006 13:53:04 -0700, "jkugler" <jkugler@xxxxxxx> wrote:
Hello,[xml snipped]
I am trying to store huge amounts of data from xml files and put them
into a MySQL database. The xml files all are in this format:
Hi James.
If you want you could use RXParse.pm (ver .91) posted on this group.
It would send the same attribute info to a tag handler.
Should be the same as the one you used.
From there you could check the "name" for the "value" data.
If you could hang on a while, I'm writing filter interfaces for
tags, namespace, attributes, content, etc.. The filters can be
either regexp or dos style. Each filter is specific, set by the
user who provides the handler to recieve that specific info.
Whats nice is that the regexp provided by the user is applied to
just the sub-parsed global data, the category is guaranteed.
Tag is tag, attrib is attrib, content is content.
Its almost there. Yours is a basic search but the intent is to
provide search/replace as well as multiple filter capability.
At my stage of development with this its really pretty easy.
The hold up is a base compliant parser, which is almost done.
Anyway, just some info for you. No need to use RXParse. The difference
between my module and all thats out there is its whole purpose is meant
to be interactive. Funny how the simple things you would expect from
high power software just aint there, and its so easy to do!
robic0
(god of porn)
.
- Prev by Date: Looking for a VERY EFFICIENT module for XML
- Next by Date: Re: Looking for a VERY EFFICIENT module for XML
- Previous by thread: Looking for a VERY EFFICIENT module for XML
- Next by thread: Re: Parsing XML and storing attributes in MySQL using Perl
- Index(es):
Relevant Pages
|