if(inModification) { ProcessingInstruction pi = doc.createProcessingInstruction(target, data); if (stack.isEmpty()) { fragment.appendChild(pi); } else { Element last = (Element) stack.peek(); last.appendChild(pi); } }
	public void processingInstruction(String target, String data) throws SAXException {		if (inModification && charBuf.length() > 0) {			final String normalized = charBuf.getNormalizedString(FastStringBuffer.SUPPRESS_BOTH);			if (normalized.length() > 0) {				Text text = doc.createTextNode(normalized);				if (stack.isEmpty()) {					LOG.debug("appending text to fragment: " + text.getData());					fragment.appendChild(text);				} else {					Element last = (Element) stack.peek();					last.appendChild(text);				}			}			charBuf.setLength(0);		}	}