public StreamBuilder writePI(String value, String target) { if (!(current instanceof Document)) throw new IllegalStateException("Not currently a document"); ((Document)current).addProcessingInstruction(target != null ? target : "", value); return this; }
public StreamBuilder writePI(String value, String target) { if (!(current instanceof Document)) throw new IllegalStateException("Not currently a document"); ((Document)current).addProcessingInstruction(target!=null?target:"", value); return this; }