如何解析XSD文件以查看其内容 [英] How to parse a XSD File to view its contents
本文介绍了如何解析XSD文件以查看其内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我的问题是从xsd文件创建xml文件.我想要的是知道如何解析xsd文件以了解其属性和类型?层次顺序也应该是已知的.我上网冲浪,结果却没有结果.大多数文章在哪里验证xml,但都没有确切说明.
Hi every one, My problem is to create an xml file from a xsd file. The thing i want is to know how can I parse the xsd file to know its attribute and type? Also the hierarchical order should be known. I surfed the net and theresult was not fruitful. Most articles where to validate the xml but nothing said precisely about it. Thanks for the help in advance.
推荐答案
这是一个选择(MSXML):
http://msdn.microsoft.com/en-us/library/ms759192 (v = VS.85).aspx [
This is one option (MSXML):
http://msdn.microsoft.com/en-us/library/ms759192(v=VS.85).aspx[^]
您可以使用 ^ ]会根据您的xml模式生成c#代码.
生成的代码可用于轻松读取和写入xml文件.
已针对C ++更新
一个好的C ++验证xml解析器可以在以下位置找到:
Xerces-C ++ [ ^ ]
最好的问候
Espen Harlinn
You can use the XML Schema Definition Tool[^] to generate c# code based on your xml schema.
The generated code can be used to easily read and write your xml files.
Updated for C++
A good C++ validating xml parser can be found at:
Xerces-C++[^]
Best regards
Espen Harlinn
请检查以下链接可能会对您有所帮助.
http://www.codesynthesis.com/projects/xsd/documentation/cxx/parser/guide/
Please check the following link it might help you.
http://www.codesynthesis.com/projects/xsd/documentation/cxx/parser/guide/
这篇关于如何解析XSD文件以查看其内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文