<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
  <xs:element name="results" type="resultsElemType"/>
  <xs:complextype name="resultsElemType">
    <xs:sequence>
      <xs:choice maxoccurs="unbounded">
        <xs:element ref="found"/>
        <xs:element ref="missing"/>
      </xs:choice>
    </xs:sequence>
  </xs:complextype>
  <xs:element name="found" type="foundOrMissingElemType"/>
  <xs:element name="missing" type="foundOrMissingElemType"/>
  <xs:complextype name="foundOrMissingElemType">
    <xs:sequence>
      <xs:element ref="ref"/>
      <xs:element ref="source"/>
      <xs:element ref="code"/>
      <xs:element ref="filename" minoccurs="0"/>
    </xs:sequence>
  </xs:complextype>
  <xs:element name="ref" type="refElemType"/>
  <xs:complextype name="refElemType">
    <xs:sequence>
      <xs:any processcontents="skip"/>
    </xs:sequence>
  </xs:complextype>
  <xs:element name="source" type="sourceElemType"/>
  <xs:complextype name="sourceElemType">
    <xs:simplecontent>
      <xs:extension base="xs:string">
        <xs:attribute ref="line"/>
        <xs:attribute ref="xpath"/>
      </xs:extension>
    </xs:simplecontent>
  </xs:complextype>
  <xs:element name="code" type="xs:string"/>
  <xs:element name="filename" type="xs:string"/>
  <xs:attribute name="line" type="xs:positiveInteger"/>
  <xs:attribute name="xpath" type="xs:string"/>
</xs:schema>