I have an xml file source.xml. I want to create an property file with key-value pairs from this xml file info.
<?xml version="1.0" ?>
<persons>
<person>
<name>John</name>
<family-name>Smith</family-name>
</person>
<person>
<name>Morka</name>
<family-name>Ismincius</family-name>
</person>
</persons>
Property file should look like
"John" = "Smith";
"Morka" = "Ismincius";
Anyone did similar kind of conversion using Unix Shell Script please suggest..
Can it be done simply using grep and sed command
.