/**
* The name of a node which will be serialized as XML text, as per section 7.3.1
* of the JCR 2.0 specifications.
+ *
+ * @see Workspace#NAME_JCR_XMLTEXT
*/
public final static String JCR_XMLTEXT = "jcr:xmltext";
/**
* The name of a property which will be serialized as XML text, as per section
* 7.3.1 of the JCR 2.0 specifications.
+ *
+ * @see Workspace#NAME_JCR_XMLCHARACTERS
*/
public final static String JCR_XMLCHARACTERS = "jcr:xmlcharacters";
/**
try {
if (node.hasNode(name)) {
Node child = node.getNode(name);
- setXmlValue(node, child, value);
+ setXmlValue(child, value);
} else
node.addNode(name, JcrxType.JCRX_XMLVALUE).addNode(Jcr.JCR_XMLTEXT, JcrxType.JCRX_XMLTEXT)
.setProperty(Jcr.JCR_XMLCHARACTERS, value);
}
}
- public static void setXmlValue(Node node, Node child, String value) {
+ /** Set the value as XML characters. */
+ public static void setXmlValue(Node child, String value) {
try {
if (!child.hasNode(Jcr.JCR_XMLTEXT))
child.addNode(Jcr.JCR_XMLTEXT, JcrxType.JCRX_XMLTEXT);