@SuppressWarnings("RedundantThrows") public void endCDATA() throws SAXException { CDATASection cdata = (CDATASection) nodeStack.pop(); cdata.setData(cdataNodeBuilder.toString()); cdataNodeBuilder.setLength(0); }
public void endCDATA() throws SAXException { CDATASection cdata = (CDATASection) nodeStack.pop(); cdata.setData(cdataNodeBuilder.toString()); cdataNodeBuilder.setLength(0); }
@SuppressWarnings("RedundantThrows") public void endCDATA() throws SAXException { CDATASection cdata = (CDATASection) nodeStack.pop(); cdata.setData(cdataNodeBuilder.toString()); cdataNodeBuilder.setLength(0); }
/** * INTERNAL: */ public void characters(String value) { if (value.length() > 0) { if (node instanceof CDATASection) { ((CDATASection) node).setData(value); } else { node.appendChild(document.createTextNode(value)); } } }
@SuppressWarnings("RedundantThrows") public void endCDATA() throws SAXException { CDATASection cdata = (CDATASection) nodeStack.pop(); cdata.setData(cdataNodeBuilder.toString()); cdataNodeBuilder.setLength(0); }
public void endCDATA() throws SAXException { CDATASection cdata = (CDATASection) nodeStack.pop(); cdata.setData(cdataNodeBuilder.toString()); cdataNodeBuilder.setLength(0); }
/** * Sets data to be the CDATA content of element * * @param element the parent element. * @param data the data to set. */ public static void setCData(Element element, String data) { if(data == null) return; CDATASection txt = getCDataNode(element); if (txt != null) txt.setData(data); else { txt = element.getOwnerDocument().createCDATASection(data); element.appendChild(txt); } }
@Override public void endCDATA() throws SAXException { CDATASection cdata = (CDATASection)nodes.get(nodes.size()-1).getFirstChild(); if (stringBuffer.length() > 0) { cdata.setData(stringBuffer.toString()); stringBuffer.reset(); } }
/** * Sets element CDATA data * * @param e * the lement * @param data * the new data */ public static void setElementCDataValue(Element e, String data) { CDATASection txt = getElementCDataNode(e); if (txt != null) { txt.setData(data); } else { txt = e.getOwnerDocument().createCDATASection(data); e.appendChild(txt); } }
public void endCDATA() { cdataSection.setData(cdata.toString()); element.appendChild(cdataSection); LocationMap extendedAttributes = getLocationMap(cdataSection); cdata = null; saveLocation(); extendedAttributes.setEndLine(line); extendedAttributes.setEndColumn(column); }
cdata.setData(data); a.appendChild(cdata); } else