private boolean maybePI (boolean skipStart)
throws IOException, SAXException
{
// [16] PI ::= '<?' PITarget
// (S (Char* - (Char* '?>' Char*)))?
// '?>'
// [17] PITarget ::= Name - (('X'|'x')('M'|'m')('L'|'l')
boolean savedLexicalPE = doLexicalPE;
if (!in.peek (skipStart ? "?" : "<?", null))
return false;
doLexicalPE = false;
String target = maybeGetName ();
if (target == null)
fatal ("P-018");
if ("xml".equals (target))
fatal ("P-019");
....
throws IOException, SAXException
{
// [16] PI ::= '<?' PITarget
// (S (Char* - (Char* '?>' Char*)))?
// '?>'
// [17] PITarget ::= Name - (('X'|'x')('M'|'m')('L'|'l')
boolean savedLexicalPE = doLexicalPE;
if (!in.peek (skipStart ? "?" : "<?", null))
return false;
doLexicalPE = false;
String target = maybeGetName ();
if (target == null)
fatal ("P-018");
if ("xml".equals (target))
fatal ("P-019");
....