aspose file tools*
The moose likes XML and Related Technologies and the fly likes how to share a schema? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "how to share a schema?" Watch "how to share a schema?" New topic
Author

how to share a schema?

roger wong
Greenhorn

Joined: Oct 21, 2009
Posts: 29
Hi, if there are two schemas that are almost same except namespace, Is there a way to define two schemas to share a common schema?

like:

a.xsd
<xsd:schema ... targetNamespace="http://a.com">
<xsd:include schemaLocation="c.xsd"></xsd:include>
</xsd:schema>

b.xsd
<xsd:schema ... targetNamespace="http://b.com">
<xsd:include schemaLocation="c.xsd"></xsd:include>
</xsd:schema>

c.xsd
<xsd:schema>
</xsd:schema>

Is there a way to do so?



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to share a schema?
 
Similar Threads
WSDL Design Trade-off Question
Question about the document style message part example in Ivan's study guide
Adding namespace information to XML
Loading a schema that refers to another one.
JAX-WS web service - "Cannot find dispatch method"