XML values to database records (grep?)
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 32904
interpreted = N
texte = I'm trying to parse some values from XML so that they can be appended asrecords into a database. So far I'm stumped as to how to parse this styleof data using WebDNA. But I have the feeling that someone who is morefluent in grep than I (John Peacock hint hint nudge nudge) could see how tomake this happen. The construct of the XML is listed below. I want to takeeach
, treat is as a database record, and append its s tothe database using the pairs within each . So usingthe example below, I would like to be able to create an [append] contextlike this:[append db=x.db] channeltitle=NZ Jazz Online - Jazz.co.nz &id=75 &storytext=<a href=http://jazz.co.nz>Manuel Bundy</a> &time=19991004T02:01:13[/append]Of course, I would like to extrapolate the data into an array of variablesfirst so that I could manipulate it (change the date format for instance)before I append it to the database. *Note that some s havesub-identifiers such as and .XML:snip... channeltitle NZ Jazz Online - Jazz.co.nz id 75 storytext <a href=http://jazz.co.nz>Manuel Bundy</a> time 19991004T02:01:13 ...snip-- This is only one isolated . The entire XML source would havemany s so my solution will need to recurs through the XML source andbreak each out as an individual record.Hmmf. Anyone? Ken? John? Grant?Thanks,Mike-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I'm trying to parse some values from XML so that they can be appended asrecords into a database. So far I'm stumped as to how to parse this styleof data using WebDNA. But I have the feeling that someone who is morefluent in grep than I (John Peacock hint hint nudge nudge) could see how tomake this happen. The construct of the XML is listed below. I want to takeeach , treat is as a database record, and append its s tothe database using the pairs within each . So usingthe example below, I would like to be able to create an [append] contextlike this:[append db=x.db] channeltitle=NZ Jazz Online - Jazz.co.nz &id=75 &storytext=<a href=http://jazz.co.nz>Manuel Bundy</a> &time=19991004T02:01:13[/append]Of course, I would like to extrapolate the data into an array of variablesfirst so that I could manipulate it (change the date format for instance)before I append it to the database. *Note that some s havesub-identifiers such as and .XML:snip... channeltitle NZ Jazz Online - Jazz.co.nz id 75 storytext <a href=http://jazz.co.nz>Manuel Bundy</a> time 19991004T02:01:13 ...snip-- This is only one isolated . The entire XML source would havemany s so my solution will need to recurs through the XML source andbreak each out as an individual record.Hmmf. Anyone? Ken? John? Grant?Thanks,Mike-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Mike Davis
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[shownext] and descending order (1997)
taxrate - off by 1 cent (1997)
OT - Public Upload Security (2002)
WebCat2 Append problem (B14Macacgi) (1997)
OK, here goes... (1997)
problems with 2 tags (1997)
How to verify email address (1997)
[ot] New List. Was: Webcat no longer supported? (2006)
apostrophe in search item (1997)
Cookies (1999)
[index] (1997)
Help name our technology! I found it (1997)
Crash solved (1998)
upgrading (1997)
Need WebDNA that crashes server for testing (2000)
performans tests... (2001)
read and write you own cookies with webcat (1997)
WebCat2.0 [format thousands .0f] no go (1997)
Using Plug-In while running 1.6.1 (1997)
[browsername] not working? (1997)