Move row from csv file into existing xml file -
i'm looking solution solve problem.
i have 2 files, 1 csv file ( products weights ) , 1 xml file ( products - details ).
i need move 1 column csv file xml file, xml file looks like:
<node> <itemnumber>10448wr</itemnumber> <ean>4014803005885</ean> <name1>equistop b</name1> <name2>equistop b, 6 volt</name2> <baanname>equistop b, 6 volt</baanname> <descriptionshort></descriptionshort> <descriptionlong> </descriptionlong> <category1>electric fencing > horizont energiser > </category1> <price>84.5</price> <picture_url></picture_url> </node>
inside node need insert value of each row weights column.
how can that?
you can use opencsv(http://opencsv.sourceforge.net/) read csv file , dom4j(http://dom4j.sourceforge.net/dom4j-1.6.1/guide.html) modify xml.
Comments
Post a Comment