writer.writeStartElement(defaultPrefix, "Fault", ns);
writer.writeStartElement(defaultPrefix, "Code", ns);
writer.writeStartElement(defaultPrefix, "Value", ns);
writer.writeCharacters(fault.getCodeString(getFaultCodePrefix(writer, fault.getFaultCode()),
defaultPrefix));
writer.writeEndElement();
if (fault.getSubCode() != null) {
writer.writeStartElement(defaultPrefix, "Subcode", ns);