@@ -2469,7 +2469,7 @@ protected boolean parsePI()
2469
2469
if (tokenize ) posStart = pos ;
2470
2470
final int curLine = lineNumber ;
2471
2471
final int curColumn = columnNumber ;
2472
- int piTargetStart = pos + bufAbsoluteStart ;
2472
+ int piTargetStart = pos ;
2473
2473
int piTargetEnd = -1 ;
2474
2474
final boolean normalizeIgnorableWS = tokenize == true && roundtripSupported == false ;
2475
2475
boolean normalizedCR = false ;
@@ -2495,7 +2495,7 @@ protected boolean parsePI()
2495
2495
seenQ = false ;
2496
2496
} else {
2497
2497
if (piTargetEnd == -1 && isS (ch )) {
2498
- piTargetEnd = pos - 1 + bufAbsoluteStart ;
2498
+ piTargetEnd = pos - 1 ;
2499
2499
2500
2500
// [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))
2501
2501
if ((piTargetEnd - piTargetStart ) == 3 ) {
@@ -2520,7 +2520,7 @@ protected boolean parsePI()
2520
2520
}
2521
2521
parseXmlDecl (ch );
2522
2522
if (tokenize ) posEnd = pos - 2 ;
2523
- final int off = piTargetStart - bufAbsoluteStart + 3 ;
2523
+ final int off = piTargetStart + 3 ;
2524
2524
final int len = pos - 2 - off ;
2525
2525
xmlDeclContent = newString (buf , off , len );
2526
2526
return false ;
@@ -2575,8 +2575,6 @@ protected boolean parsePI()
2575
2575
//throw new XmlPullParserException(
2576
2576
// "processing instruction must have PITarget name", this, null);
2577
2577
}
2578
- piTargetStart -= bufAbsoluteStart ;
2579
- piTargetEnd -= bufAbsoluteStart ;
2580
2578
if (tokenize ) {
2581
2579
posEnd = pos - 2 ;
2582
2580
if (normalizeIgnorableWS ) {
0 commit comments