在以前的时候没有个朋友让我帮忙做一个Demo,将XML树进行解析,然后进行后续的操作,一直没有时间弄
现将文件放在这个地方
<?xml version="1.0" encoding="UTF-8"?>
<safety_net name="network" text="全网评估">
<one_level name="yuyin" text="语音端到端" value="40">
<two_level name="yuyin4g" text="4G语音" value="30">
<three_level name="tiyanjia4g" text="体验佳" value="20">
<kpi name="USER_NUMBER" text="VOLTE用户网络原因万投比(需确认来源)" value="100"
min="11" kpimin="0" max="85" kpimax="100"></kpi>
</three_level>
<three_level name="fugaiquan4g" text="覆盖全" value="20">
<kpi name="DROP_USER1" text="MR覆盖率(需开放视图)(rsrp大于-95dBm的比例)"
value="100" min="12" kpimin="0" max="86" kpimax="100"></kpi>
</three_level>
<three_level name="dadeitong4g" text="打得通" value="15">
<kpi name="DROP_USER2" text="VOLTE接通率(不含用户原因)" value="40" min="13"
kpimin="0" max="87" kpimax="100"></kpi>
<kpi name="DROP_USER3" text="IMSI初始注册成功率" value="10" min="14"
kpimin="0" max="88" kpimax="100"></kpi>
<kpi name="DROP_USER4" text="ERAB承载建立成功率" value="30" min="15"
kpimin="0" max="89" kpimax="100"></kpi>
<kpi name="DROP_USER5" text="VOLTE视频接通率" value="20" min="16"
kpimin="0" max="90" kpimax="100"></kpi>
</three_level>
<three_level name="jiedekuai4g" text="接的快" value="15">
</three_level>
<three_level name="tingdeiqing4g" text="听得清" value="15">
</three_level>
<three_level name="budiaohua4g" text="不掉话" value="15">
</three_level>
</two_level>
<two_level name="yuyin2g" text="2G语音" value="30">
<three_level name="tiyanjia2g" text="体验佳" value="15">
</three_level>
<three_level name="fugaiquan2g" text="覆盖全" value="15">
</three_level>
<three_level name="dadeitong2g" text="打得通" value="20">
</three_level>
<three_level name="jiedekuai2g" text="接的快" value="5">
</three_level>
<three_level name="tingdeiqing2g" text="听得清" value="15">
</three_level>
<three_level name="budiaohua2g" text="不掉话" value="20">
</three_level>
<three_level name="shoufakuai2g" text="收发快" value="10">
</three_level>
</two_level>
<two_level name="csfb" text="CSFB" value="40">
<three_level name="jiededaocsfb" text="接的到" value="50">
</three_level>
<three_level name="dadeitongcsfb" text="打得通" value="50">
</three_level>
</two_level>
</one_level>
<one_level name="yidong" text="移动上网端到端" value="40">
<two_level name="yidongnull" text="null" value="100">
<three_level name="fugaiquan" text="覆盖全" value="20">
</three_level>
<three_level name="shangdeiqu" text="上得去" value="30">
</three_level>
<three_level name="lianjiekuai" text="连接块" value="20">
</three_level>
<three_level name="xiazaikuai" text="下载快" value="20">
</three_level>
<three_level name="shangdeiwen" text="上得稳" value="10">
</three_level>
</two_level>
</one_level>
<one_level name="jiakuan" text="家宽上网端到端" value="20">
</one_level>
</safety_net>