Data can be also stored into XML. It is GML in the geotools world.
- GMLDocumentFilter reads in an arbitrary XML file, extracts all GML-namespace associate elements, and translates them into primitive geometry calls, handled by the GMLGeometryHandler. Essentially, GMLDocumentFilter handles all coordinate parsing so that handlers further down the chain never see any character data within GML objects.
- GMLGeometryFilter implements a GMLGeometryHandler and uses the SubHandlers to create finished JTS-based geometries. This is the only object that GMLGeometryFilter passes on down the chain from the GML namespace. All other XML is passed through without modification.