use of org.eclipse.sapphire.modeling.xml.XmlNode in project liferay-ide by liferay.
the class CDataValueBindingImpl method write.
@Override
public void write(String value) {
XmlElement xmlElement = xml(true);
XmlNode childNode = xmlElement.getChildNode(_path, true);
Node cdataNode = childNode.getDomNode();
CoreUtil.removeChildren(cdataNode);
Document document = cdataNode.getOwnerDocument();
cdataNode.insertBefore(document.createCDATASection(value), null);
}
Aggregations