Search in sources :

Example 1 with XmlNode

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);
}
Also used : XmlNode(org.eclipse.sapphire.modeling.xml.XmlNode) XmlNode(org.eclipse.sapphire.modeling.xml.XmlNode) Node(org.w3c.dom.Node) XmlElement(org.eclipse.sapphire.modeling.xml.XmlElement) Document(org.w3c.dom.Document)

Aggregations

XmlElement (org.eclipse.sapphire.modeling.xml.XmlElement)1 XmlNode (org.eclipse.sapphire.modeling.xml.XmlNode)1 Document (org.w3c.dom.Document)1 Node (org.w3c.dom.Node)1