<?xml version="1.0" encoding="utf-8" ?>
<mm>
<aa file="aaa">
<filename>asdf</filename>
</aa>
<!--<bb filename="ssds">
</bb>-->
<as filename="sadfsaf">asdfasdf </as>
<ds filename="assadsa">asdfasdfsaf</ds>
</mm>
用递归的方法写
<?xml version="1.0" encoding="utf-8" ?>
<mm>
<aa file="aaa">
<filename>asdf</filename>
</aa>
<!--<bb filename="ssds">
</bb>-->
<as filename="sadfsaf">asdfasdf </as>
<ds filename="assadsa">asdfasdfsaf</ds>
</mm>
用递归的方法写
http://hi.baidu.com/newperson/blog/item/03e1f1b4e497257a8ad4b27b.html
上面的会易懂一些
http://hi.baidu.com/jalonlovesja/blog/item/70e5def37f35b4cd0b46e096.html