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