我正在尝试读取接收到的具有多个标头的 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>
我也尝试删除 xml 标头,StringHandling.EREPLACE ( b ,"<?xml version=1.0 encoding=utf-8?>","");
但它不起作用
请帮忙 !!!!