<?xml version="1.0" encoding="utf-8" ?>
<root> name ="电能量"
<parent> name = "当前"
<child> name = "当前正向有功总电能-00010001"</child>
<child> name = "当前正向有功总电能-00010001" </child>
<child>name = "当前正向有功总电能-00010001" </child>
</parent>
</root>
xml内容就是上面的,请问具体代码怎么给转换到treeview中?