I have a schema that I'd like to split into two pieces; one in the existing project, and one in a new project:
"New" part:
<xs:schema id="SchemaValidation" targetNamespace="urn:schemavalidation" xmlns:tns="urn:schemavalidation" xmlns:xs=" http://www.hide-link.com/ "> <xs:complexType name="SchemaIssues"> ...</xs:complexType>
<xs:element name="SchemaIssues" type="tns:SchemaIssues" />
etc.
"Old" part:
<xs:schema xmlns:xs=" http://www.hide-link.com/ "
xmlns:tns="urn:faults" xmlns:val="urn:schemavalidation" targetNamespace="urn:faults">
<xs:import namespace="urn:schemavalidation"
schemaLocation="c:\Utilities\SchemaValidation.xsd" />
< xs:complexType name="SchemaValidationFault">< xs:complexContent>< xs:extension base="tns:FaultBase">< xs:sequence>< xs:element name="SchemaIssues" type="val:SchemaIssues" /></ xs:sequence></ xs:extension></ xs:complexContent></ xs:complexType></ xs:schema>
When I run XSD.EXE on the "New" part, it properly generates a class in the "Utilities" namespace (as specified on the command line). When I run it on the "Old" part, I have problems.
- I have to specify the path to the "New" part on the command line
- This always generates a copy of the "New" part in the "Faults" namespace.
Is there any way to get the "Old" part, in the "Faults" namespace to use the "New" part in the "Utilities" namespace I want a "Utilities.SchemaIssues" class in the Utilities project, and I want the "Faults.SchemaValidationFault" class to have a "SchemaIssues" property which is of type "Utilities.SchemaIssues". Is this possible
Thanks,
John
.NET Development17
|