Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: Merging schemas >Thread Next - RE: Merging schemas RE: Merging schemasTo: "Michael Kay" <mike@--------.--->, <xmlschema-dev@--.---> Date: 8/17/2007 2:55:00 AM Well, neither schema is aware of the hierarchical relationship. ________________________________ From: Michael Kay [mailto:mike@s...] Sent: Friday, August 17, 2007 7:51 AM To: Rich Adili; xmlschema-dev@w... Subject: RE: Merging schemas Unless there's an overlap between the schemas, can't you just combine them using <xs:schema> <xs:include schemaLocation="schemaA.xsd"/> <xs:include schemaLocation="schemaB.xsd"/> </xs:schema> Or have I missed the point? Michael Kay http://www.saxonica.com/ =09 ________________________________ From: xmlschema-dev-request@w... [mailto:xmlschema-dev-request@w...] On Behalf Of Rich Adili Sent: 17 August 2007 13:00 To: xmlschema-dev@w... Subject: Merging schemas Hi all, I have to deal with some legacy XML that resembles the example snippet below. For historical reasons they've split the thing in two. The outer bit is in schema A and the inner bit is encoded as text and represented by schema B. (schema A simply defines the DataWrapperNode as a trivial element). =09 <DataWrapperNode><DataNode>yadyada</DataNode></DataWrapperNo de> I would like to run this thing through a code generator and what I need as output is code representing the union of the two. Does this problem have an elegant solution? Rich | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
