/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlNode.java
if ( uri == null) {
if ( value != null ) {
Node referenceDom = (reference != null) ? reference.dom : null; Namespace ns = qname.getNamespace(); Element e = (ns == null || ns.getUri().length() == 0) ? document.createElementNS(null, qname.getLocalName()) : document.createElementNS(ns.getUri(), qname.qualify(referenceDom)); <extra_id_0> e.appendChild(document.createTextNode(value)); } return XmlNode.createImpl(e); } static XmlNode createText(XmlProcessor processor, String value) { return createImpl(processor.newDocument().createTextNode(value));