| Utility class for writing out wfs xml documents.
Usage:
WFS wfs = ...;
OutputStream output = ...;
WfsXmlWriter writer = new WfsXmlWriter.WFS1_0( wfs, output );
//declare application schema namespaces
writer.getNamespaceSupport().declareNamespace( "cdf", "http://cite.opengeospatial.org/cite" );
//write the document
writer.openTag( "wfs", "GetCapabilities" );
...
//write the response
writer.closeTag( "wfs", "GetCapabilities" );
....
//close the writer
writer.close();
author: Justin Deoliveira, The Open Planning Project |