Xlnq验证,生成架构 [英] Xlnq Validation, generating schema

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

问题描述

我有一个来自数字录像机的XML元数据,客户要求我为其生成模式.我拥有的XML如下:

I have XML meta data from a digital video recorder that a client has asked me to generate a schema for. The XML I have is as follows:

<gpsindexes>
  <annotation>
    <documentation></documentation>
  </annotation>
  <rhxmltype></rhxmltype>
  <rhxmlversion></rhxmlversion>
  <medianame></medianame>
  <datecreated></datecreated>
  <timecodeoffset></timecodeoffset>
  <gpsindex>
    <lon></lon>
    <lat></lat>
    <altitude></altitude>
    <timecode></timecode>
    <name></name>
    <utctime></utctime>
    <course></course>
    <speed></speed>
    <azimuth></azimuth>
    <dop></dop>
    <fix></fix>
    <satsinuse></satsinuse>
    <geoidht></geoidht>
    <range></range>
    <data></data>
  </gpsindex>
  <gpsindex>
    <lon></lon>
    <lat></lat>
    <altitude></altitude>
    <timecode></timecode>
    <name></name>
    <utctime></utctime>
    <course></course>
    <speed></speed>
    <azimuth></azimuth>
    <dop></dop>
    <fix></fix>
    <satsinuse></satsinuse>
    <geoidht></geoidht>
    <range></range>
    <data></data>
  </gpsindex>
</gpsindexes>



是否可以像上面那样使用XML从XLinq生成模式?



Is it possible to generate a schema from XLinq with XML like the above?

推荐答案

xsd工具用于使用运行时组件生成XML模式.您可以使用它.参考: http://msdn.microsoft.com/en-us/library/x6c1kb0s.aspx [^ ]
xsd tool is used to generate XML schema using run time component. You can use it. Ref at: http://msdn.microsoft.com/en-us/library/x6c1kb0s.aspx[^]


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

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