使用xsd验证csv [英] validate csv with xsd

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

问题描述

HI,我必须使用xml架构从csv文件中验证数据记录,我想在数据表中加载xsd并尝试加载记录

i have to validata data records from a csv file using a xml schema, i was thinking to load the xsd in a datatable and try to load records

in该 所以数据表会看到记录是否正确,直到现在它都无法正常工作。

in that  so datatable would see if the records are right or not, until now it's not working.

我想知道这是正确的方式还是有更好的方法来做到这一点。

I want to know if this is the right way or there are better ways to do that.

谢谢

推荐答案

XML模式描述了XML文档的允许结构和类型,而不是CSV文档所以我不明白为什么你认为你可以用它来验证CSV中的数据。
An XML schema describes the allowed structure and types of an XML document, not of a CSV so I don't see why you think you can use it to validate data from a CSV.


这篇关于使用xsd验证csv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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