将两个XSD文件合并为一个xsd文件。 [英] Merge two XSD files into a single xsd file.
本文介绍了将两个XSD文件合并为一个xsd文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个XSD架构文件,我想将它们合并到一个XSD中,然后想要应用一些转换。
我尝试了什么:
我可以将这些文件与下面的行合并,但是面临Root元素的问题。
I Have two XSD schema files and i want to merge them into a single XSD and then want to apply some transformation.
What I have tried:
I am able to merge these files with the below lines but facing issues with the Root element.
<xsd:import namespace="http://schemas.datacontract.org/2004/07/A" schemaLocation="A.xsd"/>
<xsd:import namespace="http://schemas.microsoft.com/2003/10/Serialization/B" schemaLocation="B.xsd"/>
我希望A的根元素作为组合xsd文件的Root元素,B的Root元素作为Combined XSD文件的子元素。
提前致谢。
I want A's root element as the Root element of the combined xsd file and B's Root element as the child of Combined XSD file.
Thanks in advance.
推荐答案
谷歌搜索:合并XSD [ ^ ]
发现: java - 如何将多个XSD文件合并到一个XSD文件中? - 堆栈溢出 [ ^ ]
其中包含示例并指向这些文档以获取更多信息:
* 架构组件重用 - 包括,重新定义或导入 [ ^ ]
* 使用其他模式的模式 [ ^ ]
A Google Search: merge XSDs[^]
found this: java - How to merge more than one XSD file to one XSD file? - Stack Overflow[^]
which has examples and points to these documents for further information:
* Schema Component Reuse - "include", "redefine" or "import"[^]
* Schemas That Use Other Schemas[^]
这篇关于将两个XSD文件合并为一个xsd文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文