Actual problem is my input is xml file ,just sample input look like this
<student><number>24</number><education>bachelors</education><specialization>computers </specialization><address><name="michel"/><house_number="128"/><town=proddutoor/></address> </student><student><number>23</number><education>ph.d.</education><specialization>physics </specialization><address><name="clar"/><house_number="12"/><town=kadapa/></address></student>
I need to extract information like like this
$var1={ student=>[ {'number'=>'24','education'=>'bachelors','specilization'=>'computers','address'=>'name=michel''house_number=128''town=proddutoor', } {'number'=>'23','education'=>'ph.d.','specilization'=>'physics','address'=>'name=clar''house_number=12''town=kadapa', }
I need to print my hash like this and store this hash in new file. I am facing problems with extracting address information.I am not getting address tag elements like this.