in reply to XML = Database

I believe DBIx::XML_RDB comes w/ a script to do just that called xml2sql.pl. I've never used it, but it definitely exists; if it doesn't quite suit you, you could always hack it up until it does. Is that what you wanted?