if (tryRead ("<?xml")) { if (tryWhitespace ()) { if (inputStack.size () > 0) { return parseTextDecl (ignoreEncoding); } else { return parseXMLDecl (ignoreEncoding);
if (tryRead("<?xml")) { if (tryWhitespace()) { if (inputStack.size() > 0) { return parseTextDecl(ignoreEncoding); } else { return parseXMLDecl(ignoreEncoding); }
    private String tryEncodingDecl (boolean ignoreEncoding)    throws SAXException, IOException    {	// Read the XML/text declaration.	if (tryRead ("<?xml")) {	    if (tryWhitespace ()) {		if (inputStack.size () > 0) {		    return parseTextDecl (ignoreEncoding);		} else {		    return parseXMLDecl (ignoreEncoding);		}	    } else {		// <?xml-stylesheet ...?> or similar		unread ('l');		unread ('m');		unread ('x');		unread ('?');		unread ('<');	    }	}	return null;    }