自动将多个 XSD 合并(展平)为一个 [英] Merge (flatten) multiple XSDs into one automatically

查看:29
本文介绍了自动将多个 XSD 合并(展平)为一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有更多的 XSD 文件,其中包含消息结构的描述.我们的应用程序只能使用一个 XSD,所以目前我需要手动将 XSD 合并为一个 XSD.注意命名空间等.

I have a more XSD files which contain the description of the message structure. Our application can use only one XSD so at the moment I need to merge the XSDs into one XSD manually. Take care with the namespaces and so one.

你知道如何在没有复制粘贴的情况下自动制作吗?

Do you have any idea how can I make it automatically without copy paste?

我曾尝试从 XSD 生成类并再次生成单个 XSD,但没有奏效.

I have tried to generate classes from the XSDs and generate again a single XSD but that was not worked.

推荐答案

小心你想要的.就我而言,我有一个正在导入另外两个模式文件的模式.因为它们都使用不同的命名空间,所以它们不能被 XMLSpy 扁平化".我想这个功能是用来做其他事情的.使该工具对我无用,我通过将导入部分复制并粘贴到基本文件中再次手动合并它们.

Be careful what you want. In my case I had a schema which was importing two other schema files. As all of them were using different namespaces, so they could not be "flatten" by XMLSpy. I guess this function is meant for something else then. Made the tool useless for me and I merged them manually again by copy&paste the import part into the base file.

这篇关于自动将多个 XSD 合并(展平)为一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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