通过Xml模式验证XML [英] Validating a XML through Xml Schema

查看:82
本文介绍了通过Xml模式验证XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想在导入xml文件时执行以下操作:

1.加载xml文件;
2.通过xml模式对其进行验证;
3.将数据插入到列表中.

好吧..步骤1和3我有点弄清楚了...所以我在步骤2上遇到了麻烦.

这是正确的吗

如果要导入/验证xml数据的方法?

任何代码示例都很棒? (因为我是菜鸟,所以这是最简单的学习方式!!)

先谢谢了,

RL

解决方案

<一个href ="http://www.topxml.com/schema/"> http://www.topxml.com/schema/包含xml模式的好例子


Hi there,

I would like to do the following upon importing a xml file:

1. load the xml file;
2. validate it through a xml schema;
3. insert the data into a List.

Ok.. steps 1 and 3 I kind of figure it out... So I'm having troubles with step 2..

Is this the right way to import/validate xml data?

If it is.. how do you do it?
Any code examples would be great? (since I'm rookie it's the easiest way to learn!!)

thanks in advance,

RL

解决方案

http://www.topxml.com/schema/ contains good examples of xml schema


这篇关于通过Xml模式验证XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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