我正在尝试读取收到的有多个标题的xml数据
示例:
<?xml version="1.0" encoding="utf-8"?>
<RepeaterData>
<Version />
<Items>
<Item>
<year>2017</year>
<Additional>
<?xml version="1.0" encoding="utf-8"?>
<RepeaterData>
<Version />
<Items>
<Name>toto</Nom>
</Items>
</RepeaterData>
</AdditionalCharge>
</Item>
<Item>
<year>2018</year>
<Additional >
<?xml version="1.0" encoding="utf-8"?>
<RepeaterData>
<Version />
<Items>
<Item>
<element type="System.String">3</Sousdept>
<Name type="System.String">toto</Nom>
</Item>
<Item>
<element type="System.String">3</Sousdept>
<Name type="System.String">tata</Nom>
</Item>
</Items>
</RepeaterData>
</Additional>
</Item>
</Items>
我还试图用StringHandling.EREPLACE ( b ,"<?xml version=1.0 encoding=utf-8?>","");
删除xml标题,但它无法正常工作
请帮助!!!!