How to parse xml schema with ref attribute

0
Hi,   I have following xml schema <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://ws.polarion.com/ProjectWebService-types" xmlns:ns3="http://ws.polarion.com/TrackerWebService-types" xmlns:ns2="http://ws.polarion.com/ProjectWebService-types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://ws.polarion.com/TrackerWebService-impl" xmlns:ns1="http://ws.polarion.com/types">   <xs:import namespace="http://schemas.xmlsoap.org/soap/envelope/" schemaLocation="soapenv.xsd"/>   <xs:import namespace="http://ws.polarion.com/TrackerWebService-impl" schemaLocation="t.xsd"/>   <xs:import namespace="http://ws.polarion.com/TrackerWebService-types" schemaLocation="ns3.xsd"/>   <xs:import namespace="http://ws.polarion.com/types" schemaLocation="ns1.xsd"/>   <xs:import namespace="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="xsi.xsd"/>   <xs:element name="active" type="xs:boolean"/>   <xs:element name="lead">     <xs:complexType>       <xs:sequence>         <xs:element ref="ns2:description"/>         <xs:element ref="ns2:disabledNotifications"/>         <xs:element ref="ns2:email"/>         <xs:element ref="ns2:id"/>         <xs:element ref="ns2:name"/>         <xs:element ref="ns2:voteURIs"/>         <xs:element ref="ns2:watcheURIs"/>       </xs:sequence>       <xs:attribute name="unresolvable" use="required" type="xs:boolean"/>       <xs:attribute name="uri" use="required"/>     </xs:complexType>   </xs:element>   <xs:element name="email">     <xs:complexType/>   </xs:element>   <xs:element name="location" type="xs:string"/>   <xs:element name="projectGroupURI" type="xs:string"/>   <xs:element name="start" type="xs:NMTOKEN"/>   <xs:element name="trackerPrefix" type="xs:NCName"/>   <xs:element name="disabledNotifications" type="xs:boolean"/>   <xs:element name="id" type="xs:NCName"/>   <xs:element name="name" type="xs:string"/>   <xs:element name="voteURIs">     <xs:complexType>       <xs:sequence>         <xs:element minOccurs="0" maxOccurs="unbounded" ref="ns1:SubterraURI"/>       </xs:sequence>     </xs:complexType>   </xs:element>   <xs:element name="watcheURIs">     <xs:complexType/>   </xs:element>   <xs:element name="description">     <xs:complexType>       <xs:sequence>         <xs:element ref="ns1:type"/>         <xs:element ref="ns1:content"/>         <xs:element ref="ns1:contentLossy"/>       </xs:sequence>     </xs:complexType>   </xs:element> </xs:schema> Can you help me how do I create an xml schema in Medix which has namespaces? It gives following error :   Error: "The 'http://ws.polarion.com/types:type' element is not declared." at line 47 column 10 of 'file:///D:/Siemens/connector/polarionWorkItem.xsd'. Does Mendix support "ref" attributes? Is writing java action is the only solution here? Thanks, Pallavi
asked
2 answers
1

Have you already searched how to create xsd files? Have you any specific question for that?

answered
0

The xsd specifies 5 imports. Do you have those files in the same directory?

answered