如何像parentNodeName.ChildNodeAttributeName一样分层次地读取xml属性值?

这是我的xml文件test.xml

           

我想以这样的方式读取这个xml文件我应该获得类似Classname.attributeName —–>的属性值,例如AirwayBill.billNo,Person.fname,Person.perId等。我该如何实现? plz详细解释了使用xml的新function