|
|
|
|
Re: Element ordering not according to XSD (with several files) [message #1061804 is a reply to message #1061027] |
Tue, 04 June 2013 07:43 |
kon f Messages: 152 Registered: March 2012 |
Senior Member |
|
|
Hey Konstantin,
thank you. I adjusted the plugin.xml and the actual include in the schema file in the way you suggested - now it's working Here the final result if anyone else is having the same issue:
schema.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.roded.com/xsdtestcase"
xmlns="http://www.roded.com/xsdtestcase">
<xs:include schemaLocation="http://www.roded.com/xsdtestcase/1.0/type.xsd" />
<xs:element name="XSDTestCaseModel" type="XSDTestCaseModelType" />
</xs:schema>
type.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.roded.com/xsdtestcase"
xmlns="http://www.roded.com/xsdtestcase" elementFormDefault="qualified">
<xs:complexType name="XSDTestCaseModelType">
<xs:sequence>
<xs:element name="ValueA" type="xs:string"></xs:element>
<xs:element name="ValueB" type="xs:string"></xs:element>
<xs:element name="ValueC" type="xs:string"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
And the xml file in the running sapphire editor:
xsdtestcase.xml
<?xml version="1.0" encoding="UTF-8"?>
<XSDTestCaseModel xmlns="http://www.roded.com/xsdtestcase"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.roded.com/xsdtestcase http://www.roded.com/xsdtestcase/1.0/schema.xsd">
<ValueA>1</ValueA>
...
</XSDTestCaseModel>
Thank you!
Kon
Update: I've found this article about Eclipse XML Catalor afterwards - definitely worth reading!
[Updated on: Mon, 17 June 2013 16:12] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.06041 seconds