jodd.lagarto.dom.CData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xml-stream-css Show documentation
Show all versions of xml-stream-css Show documentation
Stream Xml using StAX and Css matcher
The newest version!
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.
package jodd.lagarto.dom;
/**
* CDATA node.
*/
public class CData extends Node {
public CData(Document ownerDocument, String cdata) {
super(ownerDocument, NodeType.CDATA, null);
this.nodeValue = cdata;
}
@Override
public CData clone() {
return cloneTo(new CData(ownerDocument, nodeValue));
}
@Override
protected void visitNode(NodeVisitor nodeVisitor) {
nodeVisitor.cdata(this);
}
}