我有和打开Price标签的XML文件.尽管有错误,有没有办法解析文件?如何跳过错误的产品并继续解析?
<Products>
<Product Name="Gummi bears">
<Price Currency="GBP">4.07</Price>
<BestBefore Date="19-02-2014"/>
</Product>
<Product Name="Mounds">
<Price Currency="AUD">5.64
<BestBefore Date="08-04-2014"/>
</Product>
<Product Name="Vodka">
<Price Currency="RUB">70</Price>
<BestBefore Date="11-10-2014"/>
</Product>
</Products>
Run Code Online (Sandbox Code Playgroud)