xml生成树结构 以DataTable形式显示
<?xml version="1.0" encoding="utf-8"?>
<root>
<note id="1" name="时尚潮流" pid="0" isch="0">
<note id="2" name="化妆技巧" pid="1" isch="0">
<note id="4" name="美容常识" pid="2" isch="0">
<note id="10" name="女人心事" pid="4" isch="0" />
</note>
<note id="5" name="吃出美丽" pid="2" isch="0" />
<note id="9" name="美发常识" pid="2" isch="0" />
</note>
<note id="3" name="护肤美容" pid="1" isch="0">
<note id="6" name="减肥瘦身" pid="3" isch="0" />
<note id="7" name="穿衣打扮" pid="3" isch="0" />
</note>
<note id="8" name="美体宝典" pid="1" isch="0" />
</note>
</root>
用递归来做的,我想了好久都不行,可能是算法没有过关,哪个高手帮忙。。。