This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 向高手请教:有没有这样的.net 源代码例子:用来判断一个xml 文件是否符合一定的xml schema? 谢谢先。
-lilyba(sunshine困惑不懂装懂);
2003-11-6
(#1451214@0)
-
parse 一下不好么?
-win(秋天的菠菜);
2003-11-6
(#1451235@0)
-
我要自己写,找到一个,先试试吧。
-lilyba(sunshine困惑不懂装懂);
2003-11-6
(#1451238@0)
-
insideXmlTextReader tr = new XmlTextReader("Sample1.xml");
XmlValidatingReader vr = new XmlValidatingReader(tr);
-luoboyang(萝卜秧);
2003-11-6
{109}
(#1451250@0)
-
Thanks. :)
-lilyba(sunshine困惑不懂装懂);
2003-11-6
(#1451347@0)
-
问题:我用了如下办法:
Dim xsc As XmlSchemaCollection = New XmlSchemaCollection
xsc.Add("generic", schemaFile)
运行到第二句出现错误:
An unhandled exception of type 'System.Xml.Schema.XmlSchemaException' occurred in system.xml.dll
Additional information: System error.
怎么办啊。
:(
谢谢
-lilyba(sunshine困惑不懂装懂);
2003-11-6
{297}
(#1451374@0)
-
more sample in VB.net
-luoboyang(萝卜秧);
2003-11-6
{3098}
(#1451384@0)
-
here is the URL
-luoboyang(萝卜秧);
2003-11-6
(#1451395@0)
-
谢谢。。。。
-lilyba(sunshine困惑不懂装懂);
2003-11-6
(#1451716@0)