package bingo.lang.xml;

public class XmlProcessingInstruction extends XmlNode {

	private final String target;
	private final String data;

	public XmlProcessingInstruction(String target, String data) {
		this.target = target;
		this.data = data;
	}

	public String getTarget() {
		return target;
	}

	public String getData() {
		return data;
	}

	@Override
	public XmlNodeType nodeType() {
		return XmlNodeType.PROCESSING_INSTRUCTION;
	}

	@Override
	public String toXml(XmlFormat format) {
		String indent = getIndent(format);
		return indent + "<?" + target + " " + data + ">";
	}
}

@@ -599,16 +599,17 @@
 data + %22
+?
 %3E%22;%0D%0A%09%7D%0D

fix bug of XmlProcessingInstruction#toXml