8169011: Resizing XML parse trees
Reviewed-by: dfuchs, lancea, skoivu
This commit is contained in:
parent
d59ed7d863
commit
8af0f26252
@ -136,7 +136,7 @@ public class XML11NSDocumentScannerImpl extends XML11DocumentScannerImpl {
|
||||
if (DEBUG_START_END_ELEMENT)
|
||||
System.out.println(">>> scanStartElementNS()");
|
||||
// Note: namespace processing is on by default
|
||||
fEntityScanner.scanQName(fElementQName, NameType.ATTRIBUTE);
|
||||
fEntityScanner.scanQName(fElementQName, NameType.ELEMENTSTART);
|
||||
// REVISIT - [Q] Why do we need this local variable? -- mrglavas
|
||||
String rawname = fElementQName.rawname;
|
||||
if (fBindNamespaces) {
|
||||
@ -346,7 +346,7 @@ public class XML11NSDocumentScannerImpl extends XML11DocumentScannerImpl {
|
||||
protected void scanStartElementName ()
|
||||
throws IOException, XNIException {
|
||||
// Note: namespace processing is on by default
|
||||
fEntityScanner.scanQName(fElementQName, NameType.ATTRIBUTE);
|
||||
fEntityScanner.scanQName(fElementQName, NameType.ELEMENTSTART);
|
||||
// Must skip spaces here because the DTD scanner
|
||||
// would consume them at the end of the external subset.
|
||||
fSawSpace = fEntityScanner.skipSpaces();
|
||||
@ -572,7 +572,7 @@ public class XML11NSDocumentScannerImpl extends XML11DocumentScannerImpl {
|
||||
System.out.println(">>> scanAttribute()");
|
||||
|
||||
// name
|
||||
fEntityScanner.scanQName(fAttributeQName, NameType.ATTRIBUTE);
|
||||
fEntityScanner.scanQName(fAttributeQName, NameType.ATTRIBUTENAME);
|
||||
|
||||
// equals
|
||||
fEntityScanner.skipSpaces();
|
||||
|
@ -1215,7 +1215,7 @@ implements XMLDTDScanner, XMLComponent, XMLEntityHandler {
|
||||
|
||||
// definitions
|
||||
while (!fEntityScanner.skipChar('>', null)) {
|
||||
String name = fEntityScanner.scanName(NameType.ATTRIBUTE);
|
||||
String name = fEntityScanner.scanName(NameType.ATTRIBUTENAME);
|
||||
if (name == null) {
|
||||
reportFatalError("AttNameRequiredInAttDef",
|
||||
new Object[]{elName});
|
||||
@ -1359,7 +1359,7 @@ implements XMLDTDScanner, XMLComponent, XMLEntityHandler {
|
||||
fMarkUpDepth++;
|
||||
do {
|
||||
skipSeparator(false, !scanningInternalSubset());
|
||||
String aName = fEntityScanner.scanName(NameType.ATTRIBUTE);
|
||||
String aName = fEntityScanner.scanName(NameType.ATTRIBUTENAME);
|
||||
if (aName == null) {
|
||||
reportFatalError("MSG_NAME_REQUIRED_IN_NOTATIONTYPE",
|
||||
new Object[]{elName, atName});
|
||||
|
@ -405,7 +405,7 @@ public class XMLNSDocumentScannerImpl
|
||||
if (DEBUG_START_END_ELEMENT) System.out.println(this.getClass().toString() +">>> scanAttribute()");
|
||||
|
||||
// name
|
||||
fEntityScanner.scanQName(fAttributeQName, NameType.ATTRIBUTE);
|
||||
fEntityScanner.scanQName(fAttributeQName, NameType.ATTRIBUTENAME);
|
||||
|
||||
// equals
|
||||
fEntityScanner.skipSpaces();
|
||||
|
Loading…
Reference in New Issue
Block a user