Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: I have a generalized "from XML to SQL" chore... best way?

by trwww (Priest)
on Mar 01, 2008 at 09:32 UTC ( [id://671353]=note: print w/replies, xml ) Need Help??


in reply to I have a generalized "from XML to SQL" chore... best way?

Hello,

Assuming that the XML file takes a "each child of the root node is a record" layout, the first thing I would do is turn each record in to a data structure. An easy way to do this while keeping efficiency in mind is with Jenda's XML::Rules (see also node #582348).

Then personally I would use Data::FormValidator to validate and manipulate each record.

And then probably DBI or maybe an ORM to insert the data in to the db.

trwww

  • Comment on Re: I have a generalized "from XML to SQL" chore... best way?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://671353]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found