@Throws(javax.xml.stream.XMLStreamException::class) private fun writeAttribute( namespace: String, attName: String, attValue: String, xmlWriter: javax.xml.stream.XMLStreamWriter ) { if (namespace == "") { xmlWriter.writeAttribute(attName, attValue) } else { registerPrefix(xmlWriter, namespace) xmlWriter.writeAttribute(namespace, attName, attValue)} }
Util method to write an attribute without the ns prefix