Parsing XML

Parsing XML

Hi, I need some help I am thinking about an small project to display a xml structure as IE does, becouse I didn't find a suitable plugin, so I need a little help about parsing XML dokument, concretly I need to know how to find an end of xml tag. For example if i have <xml><name></name></xml> how to target the </xml> tag

Thanks