I'm struggling with referencing a schema from an xml file.
I must admit that, no matter how much I read on namespaces I don't get it all, quite often there is too much information missing, to high a level of assumption on the readers knowledge and a lack of real world examples.
What I have is as below:
Schema
XML
I must admit that, no matter how much I read on namespaces I don't get it all, quite often there is too much information missing, to high a level of assumption on the readers knowledge and a lack of real world examples.
What I have is as below:
Schema
Code:
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema targetNamespace="[URL unfurl="true"]http://www.mycompany.com"[/URL] elementFormDefault="qualified" xmlns="[URL unfurl="true"]http://www.mycompany.com"[/URL] xmlns:xs="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema">[/URL]
<xs:element name="TopLevelElement">
<xs:complexType>
<xs:sequence>
<xs:element name="LowLevelElement">
<xs:complexType>
<xs:sequence>
<xs:element name="Item1" type="xs:double" />
<xs:element name="Item2" type="xs:double" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
XML
Code:
<?xml version="1.0" encoding="utf-8" ?>
<TopLevelElement xmlns="[URL unfurl="true"]http://www.mycompany.com/myschema.xsd">[/URL]
</TopLevelElement>