Merging Multiple xsd into Single File
Posted: Wed Nov 23, 2016 10:57 pm
Hi,
I'm trying to merge two schemas into a single file. I have the following code, which I have taken as a basis to get started:
However I get the following error message in <oXygen/> XML editor:
Thanks
I'm trying to merge two schemas into a single file. I have the following code, which I have taken as a basis to get started:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:resourcedata type="acquisition">
<xs:details>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="resource">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:long" name="identifier"/>
<xs:element type="xs:string" name="requestedby"/>
<xs:element type="xs:string" name="product"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</xs:details>
</xs:resourcedata>
<xs:resourcedata type="warningletter">
<xs:details>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="resource">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:long" name="identifier"/>
<xs:element type="xs:string" name="email"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</xs:details>
</xs:resourcedata>
</xs:schema>
I can see resourcedata appears too often but I'm not sure how I correct this to allow multiple schemas in a single file.Engine name: Xerces
Severity: error
Description: s4s-elt-invalid-content.1: The content of 'schema' is invalid. Element 'resourcedata' is invalid, misplaced, or occurs too often.
Thanks