{ String name; boolean saved = expandPE;  expandPE = false; name = readNmtoken (true);  if (name.indexOf(':') >= 0) error ("Illegal character(':') in processing instruction name ", name, null); if ("xml".equalsIgnoreCase (name)) error ("Illegal processing instruction target", name, null); if (!tryRead (endDelimPI)) { requireWhitespace (); parseUntil (endDelimPI); } expandPE = saved; handler.processingInstruction (name, dataBufferToString ()); }
{ String name; boolean saved = expandPE;  expandPE = false; name = readNmtoken(true);  if (name.indexOf(':') >= 0) { error("Illegal character(':') in processing instruction name ", name, null); } if ("xml".equalsIgnoreCase(name)) { error("Illegal processing instruction target", name, null); } if (!tryRead(endDelimPI)) { requireWhitespace(); parseUntil(endDelimPI); } expandPE = saved; handler.processingInstruction(name, dataBufferToString()); }
    private void parsePI ()    throws SAXException, IOException    {	String name;	boolean saved = expandPE;	expandPE = false;	name = readNmtoken (true);	//NE08	if (name.indexOf(':') >= 0)           error ("Illegal character(':') in processing instruction name ", name, null);	if ("xml".equalsIgnoreCase (name))	    error ("Illegal processing instruction target", name, null);	if (!tryRead (endDelimPI)) {	    requireWhitespace ();	    parseUntil (endDelimPI);	}	expandPE = saved;	handler.processingInstruction (name, dataBufferToString ());    }