Is there a way to convert XML to SQL INSERT using the command line, here is examples:
<something>
<somthingelse>lol</somethingelse>
</something>
would be
INSERT INTO `database` (`something`)
VALUES
(lol)
Or something like that.
Is there a way to convert XML to SQL INSERT using the command line, here is examples:
would be
Or something like that. |
|||||||||||||
|
With Name of root node "something": Text "lol": Script sql.sh:
$ ./sql.sh file.xml Output:
|
|||||||||||||||||
|