/** * Read an end tag. * * <p>The resulting token will contain the '</' and '>' plus the * name plus any whitespace between those three. */ protected void parseEndElement (Token token) { token.setType (Type.END_ELEMENT); skipWhiteSpace (); parseName ("end tag"); skipWhiteSpace (); expect ('>'); }
protected void parseEntity (Token token) { token.setType (Type.ENTITY); char c; if (pos < source.length ()) { c = source.charAt (pos); if (c == '#') pos ++; } while (pos < source.length ()) { c = source.charAt (pos); if (c == ';') break; if (!charValidator.isNameChar (c)) throw new XMLParseException ("Illegal character in entity: ["+c+"] ("+Integer.toHexString (c)+")", source, pos); pos ++; } expect (';'); verifyEntity (token.getStartOffset (), pos); }
expect ('='); skipWhiteSpace ();