@Override public BasicNode toXML (XMLWriter writer) throws IOException { writer.write (this, getPreSpace ()); String prefix = getNamespace ().getPrefix (); if (prefix.length () != 0) { writer.write (this, prefix); writer.write (this, ":"); } writer.write (this, getName ()); writer.write (this, getEqualsSpace ()); char[] buffer = new char[1]; buffer[0] = (char)quoteChar; String s = new String (buffer); writer.write (this, s); if (rawValue != null) writer.write (this, rawValue); else writer.writeAttributeValue (this, getValue (), quoteChar); writer.write (this, s); return this; }