/** * INTERNAL: */ public void cdata(String value) { //Format the CDATA on it's own line if(isStartElementOpen) { builder.append('>'); isStartElementOpen = false; } super.cdata(value); complexType=false; }
/** * INTERNAL: */ public void cdata(String value) { //Format the CDATA on it's own line if(isStartElementOpen) { builder.append('>'); isStartElementOpen = false; } super.cdata(value); complexType=false; }
public void characters(CharSequence characters) throws SAXException { if (isProcessingCData) { cdata(characters.toString()); return; } if (isStartElementOpen) { builder.append('>'); isStartElementOpen = false; } writeValue(characters.toString()); }
public void characters(CharSequence characters) throws SAXException { if (isProcessingCData) { cdata(characters.toString()); return; } if (isStartElementOpen) { builder.append('>'); isStartElementOpen = false; } writeValue(characters.toString()); }
public void characters(char[] ch, int start, int length) throws SAXException { if (isProcessingCData) { cdata(new String (ch, start, length)); return; } if (isStartElementOpen) { try { writer.write('>'); isStartElementOpen = false; } catch (IOException e) { throw XMLMarshalException.marshalException(e); } } writeValue(new String(ch, start, length)); }
/** * INTERNAL: */ public void cdata(String value) { //Format the CDATA on it's own line try { if(isStartElementOpen) { writer.write('>'); isStartElementOpen = false; } writer.write(Helper.cr()); for (int x = 0; x < numberOfTabs; x++) { writer.write(TAB); } super.cdata(value); complexType=true; }catch(IOException ex) { throw XMLMarshalException.marshalException(ex); } }