I'm developing a GIS application with java. I am using Spring RESTController and GeoTools. In client side(I use Openlayers 2.13.1), user modifies a feature of wfs layer and want to update it in server side. After modifying, user send the request as follow:
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
    <wfs:Update typeName="feature:itsme" xmlns:feature="http://iran.me">
        <wfs:Property>
            <wfs:Name>the_geom</wfs:Name>
            <wfs:Value>
                <gml:Point xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326">
                    <gml:pos>49.02405689339376 34.858924130844805</gml:pos>
                </gml:Point>
            </wfs:Value>
        </wfs:Property>
        <wfs:Property>
            <wfs:Name>name</wfs:Name>
            <wfs:Value>Salam Bar Hossein</wfs:Value>
        </wfs:Property>
        <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
            <ogc:FeatureId fid="point.3"/>
        </ogc:Filter>
    </wfs:Update>
</wfs:Transaction>
In server side I want to parse this request and modify the record of table(I use postgis).
How do I parse xml?
How do I modify the record of table?
 
     
     
    