I have some XML like this:\[code\]<?xml version="1.0" encoding="UTF-8"?><person> <version>1.1</version> <lname>xxxx</lname> <fname>yyyy</fname> <address> <city>zzzz</city> <state>ffff</state> <country>aaaa</country> <address> <dob>xx-xx-xxxx</dob> <familymembers> <father> <fname>bbbb</fname> <lname>dddd</lname> </father> <mother> <fname>zzzz</fname> <lname>aaaa</lname> </mother> <sibling> <fname>bbbb</fname> <lname>dddd</lname> </sibling> </familymembers></person>\[/code\]My requirement is that all child elements should be traversed and placed inside a map as key-value pairs like this:\[code\]persion.version --> 1.1persion.lname --> xxxxpersion.fname --> yyyyperson.address.city --> zzzzperson.address.state --> ffffperson.address.country --> aaaaperson.familymembers.father.fname --> bbbbperson.familymembers.father.lname --> ddddperson.familymembers.mother.fname --> zzzzperson.familymembers.mother.lname --> aaaaperson.familymembers.sibling.fname --> bbbbperson.familymembers.sibling.lname --> dddd\[/code\]