<?xml version='1.0'?> <employee> <name>John Doe</name> <age>43</age> <sex>M</sex> <department>Operations</department> </employee>
How to store $data to the table in mysql called `Person` which has the field department,name,sex,age#!/usr/bin/perl # use module use XML::Simple; use Data::Dumper; # create object $xml = new XML::Simple; # read XML file $data = $xml->XMLin("data.xml"); # print output print Dumper($data);
In reply to XML data to database by sandy_1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |