/** * Scans the name of an element in a start or empty tag. * * @see #scanStartElement() */ protected void scanStartElementName () throws IOException, XNIException { // name if (fNamespaces) { fEntityScanner.scanQName(fElementQName); } else { String name = fEntityScanner.scanName(); fElementQName.setValues(null, name, name, null); } // Must skip spaces here because the DTD scanner // would consume them at the end of the external subset. fSawSpace = fEntityScanner.skipSpaces(); } // scanStartElementName()
/** * Scans a processing instruction. * <p> * <pre> * [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' * [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) * </pre> * <strong>Note:</strong> This method uses fString, anything in it * at the time of calling is lost. */ protected void scanPI() throws IOException, XNIException { // target fReportEntity = false; String target = null; if(fNamespaces) { target = fEntityScanner.scanNCName(); } else { target = fEntityScanner.scanName(); } if (target == null) { reportFatalError("PITargetRequired", null); } // scan data scanPIData(target, fString); fReportEntity = true; } // scanPI()
XMLStringBuffer colonName = new XMLStringBuffer(target); colonName.append(':'); String str = fEntityScanner.scanName(); if (str != null) colonName.append(str);
String name = fEntityScanner.scanName(); if (name == null) { reportFatalError("NameRequiredInPEReference", null);
String entityName = fEntityScanner.scanName(); if (entityName == null) { reportFatalError("NameRequiredInReference", null);
String name = fEntityScanner.scanName(); if (name == null) { reportFatalError("NameRequiredInReference", null);
name = fEntityScanner.scanNCName(); } else { name = fEntityScanner.scanName(); XMLStringBuffer colonName = new XMLStringBuffer(name); colonName.append(':'); colonName.append(fEntityScanner.scanName()); reportFatalError("ColonNotLegalWithNS", new Object[] {colonName.toString()}); skipSeparator(true, !scanningInternalSubset());
String name = fEntityScanner.scanName(); fAttributeQName.setValues(null, name, name, null);
fDoctypeName = fEntityScanner.scanName(); if (fDoctypeName == null) { reportFatalError("MSG_ROOT_ELEMENT_TYPE_REQUIRED", null);
String name = fEntityScanner.scanName(); fElementQName.setValues(null, name, name, null);
String peName = fEntityScanner.scanName(); if (peName == null) { reportFatalError("NameRequiredInPEReference", null); name = fEntityScanner.scanNCName(); } else { name = fEntityScanner.scanName(); XMLStringBuffer colonName = new XMLStringBuffer(name); colonName.append(':'); String str = fEntityScanner.scanName(); if (str != null) colonName.append(str); new Object[]{name}); notation = fEntityScanner.scanName(); if (notation == null) { reportFatalError("MSG_NOTATION_NAME_REQUIRED_FOR_UNPARSED_ENTITYDECL",
fStringBuffer.append('&'); fStringBuffer2.append('&'); String eName = fEntityScanner.scanName(); if (eName == null) { reportFatalError("NameRequiredInReference", while (true) { fStringBuffer2.append('%'); String peName = fEntityScanner.scanName(); if (peName == null) { reportFatalError("NameRequiredInPEReference",
childName = fEntityScanner.scanName(); if (childName == null) { reportFatalError("MSG_ELEMENT_TYPE_REQUIRED_IN_MIXED_CONTENT",
String name = fEntityScanner.scanName(); if (name == null) { reportFatalError("MSG_ELEMENT_TYPE_REQUIRED_IN_ELEMENTDECL",
String entityName = fEntityScanner.scanName(); if (entityName == null) { reportFatalError("NameRequiredInReference", null);
do { skipSeparator(false, !scanningInternalSubset()); String aName = fEntityScanner.scanName(); if (aName == null) { reportFatalError("MSG_NAME_REQUIRED_IN_NOTATIONTYPE",
String childName = fEntityScanner.scanName(); if (childName == null) { reportFatalError("MSG_OPEN_PAREN_OR_ELEMENT_TYPE_REQUIRED_IN_CHILDREN",
String entityName = fEntityScanner.scanName(); if (entityName == null) { reportFatalError("NameRequiredInReference", null);