private void sendResponse200( HttpResponseBuffer response ) throws XMLStreamException, IOException { String ns = WFS_200_NS; String schemaLocation = ns + " " + WFS_200_SCHEMA_URL; XMLStreamWriter xmlWriter = getXMLResponseWriter( response, "text/xml", schemaLocation ); xmlWriter.setPrefix( "wfs", WFS_200_NS ); xmlWriter.writeStartElement( WFS_200_NS, "TransactionResponse" ); xmlWriter.writeAttribute( "version", VERSION_200.toString() ); xmlWriter.writeNamespace( "wfs", WFS_200_NS ); xmlWriter.writeNamespace( "fes", FES_20_NS ); xmlWriter.writeStartElement( WFS_200_NS, "TransactionSummary" ); writeElement( xmlWriter, WFS_200_NS, "totalInserted", "" + inserted.getTotal() ); writeElement( xmlWriter, WFS_200_NS, "totalUpdated", "" + updated.getTotal() ); writeElement( xmlWriter, WFS_200_NS, "totalReplaced", "" + replaced.getTotal() ); writeElement( xmlWriter, WFS_200_NS, "totalDeleted", "" + deleted ); xmlWriter.writeEndElement(); writeActionResults200( xmlWriter, "InsertResults", inserted ); writeActionResults200( xmlWriter, "UpdateResults", updated ); writeActionResults200( xmlWriter, "ReplaceResults", replaced ); xmlWriter.writeEndElement(); xmlWriter.flush(); }