如何在MSXML中禁用格式良好的xml验证 [英] How to disable well-formed-xml validation in MSXML

查看:83
本文介绍了如何在MSXML中禁用格式良好的xml验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

Hello,

我需要将包含未知ascii字符的xml文件加载到MSXML4的解析器,例如&安培;#7 ;.我尝试了几种方法来使用C ++禁用msxml验证,但我没有找到任何方法,解析器总是给我一个致命的错误,加载中止。
我可以迁移到MSXML6,如果这是我的验证工作方式。我正在使用SAX。

I need to load xml files that contain unknown ascii characters to MSXML4's parser e.g. . I tried several ways to disable msxml validation using C++ but I didnt find any way and the parser always gives me a fatal error and the loading aborts. I can migrate to MSXML6 if this is my way to get the validation working. I am using SAX.

 

我们非常感谢您的帮助。

Your help is highly appreciated.

Marina

推荐答案

XML规范明确定义了XML文档中允许哪些字符,并且需要任何XML解析器检查没有不允许的字符,因此没有选项可以关闭此类检查。
The XML specification clearly defines which characters are allowed in an XML document and any XML parser is required to check that there are no disallowed characters so there is no option to turn off such checks.


这篇关于如何在MSXML中禁用格式良好的xml验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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