<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
  targetNamespace="http://quest"
  xmlns:tns="http://quest"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
  jxb:version="2.0"
  elementFormDefault="qualified">
  
  <xsd:element name="defectDescriptions" type="tns:DefectDescriptions" />

  <xsd:complexType name="DefectDescriptions">
    <xsd:sequence>
      <xsd:element name="defectDescription" type="tns:DefectDescription" maxOccurs="unbounded" />
    </xsd:sequence>
  </xsd:complexType>

  <xsd:complexType name="DefectDescription">
    <xsd:choice maxOccurs="unbounded">
      <xsd:element name="textFragment" type="tns:SimpleFragment" />
      <xsd:element name="parameterFragment" type="tns:ParameterFragment" />
    </xsd:choice>
    <xsd:attribute name="defectId" type="xsd:string" use="required" />
  </xsd:complexType>

  <xsd:simpleType name="SimpleFragment">
    <xsd:restriction base="xsd:string"/>
  </xsd:simpleType>

  <xsd:complexType name="ParameterFragment">
    <xsd:attribute name="parameterName" use="required" type="xsd:string" />
  </xsd:complexType>

</xsd:schema>