容错XML阅读器 [英] Error tolerant XML reader

查看:97
本文介绍了容错XML阅读器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人有/制造过/出售过用于.NET的容错XML阅读器吗?

Does anyone have/make/sell an error tolerant XML reader for .NET?

是的,我知道,XML并非设计为有错误的,应该被拒绝,如果它是无效的..等等等等。但是遗憾的是,现实世界并不完美,开发人员确实犯了错误,即使我在这里或那里缺少奇数元素,我仍然希望能够读取他们的提要,因为它的编码方式不正确或其中存在其他错误。 因此,请不要回答修复源文件或拒绝源文件。

Yeah, I know, XML isn't designed to have errors in it and should be rejected if it's not valid .. blah blah. But sadly the real-world is imperfect and developers do make mistakes and I still want to be able to read their feeds even if I'm missing the odd element here or there because it wasn't encoded properly or had some other error in it. So please, no answers "fix the source" or "reject it".

因此,有人可以恢复和处理组件吗? XML文件中的常见错误?

So, does anyone have a component that can recover and handle common mistakes in XML files?

推荐答案

看看HTML解析器,因为html几乎是xml

Look around HTML Parser, 'cause html is almost xml

这篇关于容错XML阅读器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆