public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
		      throws SAXException {
			
		    if (DefaultXmlNames.ELEMENT_PcGts.equals(localName)){
		    	
				String str = namespaceURI; //Example: http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19
				int pos = str.lastIndexOf("/");
				schemaVersion = new XmlFormatVersion(str.substring(pos+1));
					throw new SAXException(PARSING_COMPLETE);
		    }
		    //Abbyy
		    else if ("document".equals(localName)) {
				//String str = namespaceURI; //Example: http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml
				if (namespaceURI.contains("abbyy")) {
					schemaVersion = new XmlFormatVersion(namespaceURI);
					throw new SAXException(PARSING_COMPLETE);
				}
		    }
		    //ALTO
		    else if ("alto".equals(localName)) {
				//String str = namespaceURI; //Examples: http://www.loc.gov/standards/alto/ns-v2#
		    	//                                       http://www.loc.gov/standards/alto/ns-v3#
				if (namespaceURI.toLowerCase().contains("alto")) {
					schemaVersion = new XmlFormatVersion(namespaceURI);
					throw new SAXException(PARSING_COMPLETE);
				}
		    }
		    //HOCR
		    else if ("html".equals(localName)) {
				schemaVersion = new XmlFormatVersion("HOCR");
				throw new SAXException(PARSING_COMPLETE);
		    }
		}