Skip to content

Commit 4d6f91d

Browse files
committed
XMLParser: support attributes with empty values
Signed-off-by: Keith W. Campbell <[email protected]>
1 parent 3f7abb5 commit 4d6f91d

File tree

1 file changed

+5
-2
lines changed
  • test/functional/J9 Exclude File Support/src/com/oti/j9/exclude

1 file changed

+5
-2
lines changed

test/functional/J9 Exclude File Support/src/com/oti/j9/exclude/XMLParser.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,10 @@ private String _scan_attribute_value() throws XMLException
255255

256256
XMLStringBuffer buffer = new XMLStringBuffer();
257257

258-
do {
258+
while (_fScan != '"') {
259259
buffer.append(_fScan);
260260
scan_char();
261-
} while ( _fScan != '"' );
261+
}
262262

263263
// Advance past the final quote
264264
scan_char();
@@ -396,6 +396,9 @@ private void _scan_element_or_instruction() throws XMLException
396396
Hashtable attributes = _scan_attributes();
397397

398398
// Notify the content handler
399+
if (VERBOSE) {
400+
System.out.format("%nAbout to start <%s> at level %d%n", elementName, _fLevel + 1);
401+
}
399402
_fDocumentHandler.xmlStartElement(elementName, attributes);
400403
_fLevel++;
401404

0 commit comments

Comments
 (0)