/** * Remove the named attribute. * @param name Attribute name. */ public void removeAttribute(String name) { removeAttributeNS(XMLConstants.NULL_NS_URI, name); }
/** * Remove the named attribute. * @param name Attribute name. */ public void removeAttribute(String name) { removeAttributeNS(XMLConstants.NULL_NS_URI, name); }
/** * Remove the named attribute. * @param name Attribute name. */ public void removeAttribute(String name) { removeAttributeNS(XMLConstants.NULL_NS_URI, name); }
/** * Remove the named attribute. * @param name Attribute name. */ public void removeAttribute(String name) { removeAttributeNS(XMLConstants.NULL_NS_URI, name); }
/** * Set the named attribute on this element. * @param namespaceURI The attribute namespace URI. * @param name The attribute name. * @param value The attribute value. */ public void setAttributeNS(String namespaceURI, String name, String value) { removeAttributeNS(namespaceURI, name); int prefixIndex = name.indexOf(":"); if(prefixIndex != -1) { attributes.addAttribute(namespaceURI, name.substring(prefixIndex + 1), name, "CDATA", value); } else { attributes.addAttribute(namespaceURI, name, "", "CDATA", value); } }
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { if(namespace != null) { element.removeAttributeNS(namespace, qName); } else { element.removeAttribute(qName); } }
/** * Set the named attribute on this element. * @param namespaceURI The attribute namespace URI. * @param name The attribute name. * @param value The attribute value. */ public void setAttributeNS(String namespaceURI, String name, String value) { removeAttributeNS(namespaceURI, name); int prefixIndex = name.indexOf(":"); if(prefixIndex != -1) { attributes.addAttribute(namespaceURI, name.substring(prefixIndex + 1), name, "CDATA", value); } else { attributes.addAttribute(namespaceURI, name, "", "CDATA", value); } }
/** * Set the named attribute on this element. * @param namespaceURI The attribute namespace URI. * @param name The attribute name. * @param value The attribute value. */ public void setAttributeNS(String namespaceURI, String name, String value) { removeAttributeNS(namespaceURI, name); int prefixIndex = name.indexOf(":"); if(prefixIndex != -1) { attributes.addAttribute(namespaceURI, name.substring(prefixIndex + 1), name, "CDATA", value); } else { attributes.addAttribute(namespaceURI, name, "", "CDATA", value); } }
/** * Set the named attribute on this element. * @param namespaceURI The attribute namespace URI. * @param name The attribute name. * @param value The attribute value. */ public void setAttributeNS(String namespaceURI, String name, String value) { removeAttributeNS(namespaceURI, name); int prefixIndex = name.indexOf(":"); if(prefixIndex != -1) { attributes.addAttribute(namespaceURI, name.substring(prefixIndex + 1), name, "CDATA", value); } else { attributes.addAttribute(namespaceURI, name, "", "CDATA", value); } }
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { if(namespace != null) { element.removeAttributeNS(namespace, qName); } else { element.removeAttribute(qName); } }
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { if(namespace != null) { element.removeAttributeNS(namespace, qName); } else { element.removeAttribute(qName); } }
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { if(namespace != null) { element.removeAttributeNS(namespace, qName); } else { element.removeAttribute(qName); } }