void writeURIAttribute(String name, Object value, String property) throws IOException { String uri = value.toString(); // TODO - perform encodeActionURL() or ??? attributes.addAttribute(getNamespaceURI(), name, name, "CDATA", uri); }
void endElement(String name) throws IOException { try { xmlConsumer.endElement(getNamespaceURI(), name, name); } catch (SAXException e) { throw new IOException("Sax exceptions in endElement: " + e.getMessage()); } }
void writeAttribute(String name, Object value, String property) throws IOException { attributes.addAttribute(getNamespaceURI(), name, name, "id".equalsIgnoreCase(name) ? "ID" : "CDATA", value.toString()); }
/** * Generate SAX StartElement event * * @throws IOException */ void flushElement() throws IOException { try { xmlConsumer.startElement(getNamespaceURI(), element, element, attributes); } catch (SAXException e) { throw new IOException("Exception in startElement: " + e.getMessage()); } finally { element = null; attributes = null; } }