Daij-Djan/xsd2cocoa

Schema/template distinction doesn't work if first xsd element is comment

Opened this issue · 0 comments

If XSD document happens to have comment as first element, like in snippet below, used approach of distinction of schema/template isn't working.

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
	Bundeseinheitlicher Medikationsplan (BMP) (bmp023.xsd)
	2016-07-15 Version 2.3

	verantwortliche Organisationen KBV, DAV und BÄK

   basierend auf Medikationsplan Ultrakurzformat (UKF)
  
   In Zusammenarbeit mit:    
   Bundesverband Deutscher Apothekensoftwarehäuser (ADAS e.V.)
   Bundesverband Gesundheits-IT e.V. (bvitg e.V.)
   HL7 Deutschland e.V.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="MP">
		<xs:annotation>
			<xs:documentation>Bundesmedikationsplan</xs:documentation>
		</xs:annotation>
		<xs:complexType>