xml数据文件如何在vc中用schema进行校验呢?用代码实现
就是指定一个schema文件,然后对需要读取得xml文件进行校验,如何校验通过就读取相应得值,如果校验不通过就直接返回,该如何做呢? 问题点数:100、回复次数:2Top
1 楼jefflg(Jeff)回复于 2003-08-15 10:24:01 得分 0
没有人知道吗?Top
2 楼masterz(www.fruitfruit.com)回复于 2003-08-28 21:24:25 得分 100
http://www.perfectxml.com/CPPMSXML/20020715.asp
This sample application shows how to use MSXML 4.0 to validate an XML document against XSD schema. MSXML 4.0 DOM supports validating the fully loaded DOMDocument (using the validate method) or validating the document while loading/parsing (using the validateOnParse property). This sample C++ application illustrates both the approaches.Top



