<wfs:Transaction version="2.0.0" service="WFS" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd">
<wfs:Replace>
<WFS_test_wfs:PG.省>
<WFS_test_wfs:省>南沙群岛</WFS_test_wfs:省>
<WFS_test_wfs:省代码>1</WFS_test_wfs:省代码>
<WFS_test_wfs:the_geom>
<gml:Polygon srsName="urn:ogc:def:crs:EPSG::4326">
<gml:exterior>
<gml:LinearRing>
<gml:posList>3.31823363496683 114.085926400034 10.7245463738036 114.085926400034 10.7245463738036 120.16968329265 3.31823363496683 120.16968329265 3.31823363496683 114.085926400034</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</WFS_test_wfs:the_geom>
</WFS_test_wfs:PG.省>
<fes:Filter>
<fes:PropertyIsEqualTo>
<fes:ValueReference>省</fes:ValueReference>
<fes:Literal>中国南沙群岛</fes:Literal>
</fes:PropertyIsEqualTo>
</fes:Filter>
</wfs:Replace>
</wfs:Transaction>
curl --location --request POST '/rest/services//data/wfs?service=WFS&version=2.0.0&request=Transaction&identifier=replace' \
--header 'Content-Type: application/xml' \
--data-raw '<wfs:Transaction version="2.0.0" service="WFS" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd">
<wfs:Replace>
<WFS_test_wfs:PG.省>
<WFS_test_wfs:省>南沙群岛</WFS_test_wfs:省>
<WFS_test_wfs:省代码>1</WFS_test_wfs:省代码>
<WFS_test_wfs:the_geom>
<gml:Polygon srsName="urn:ogc:def:crs:EPSG::4326">
<gml:exterior>
<gml:LinearRing>
<gml:posList>3.31823363496683 114.085926400034 10.7245463738036 114.085926400034 10.7245463738036 120.16968329265 3.31823363496683 120.16968329265 3.31823363496683 114.085926400034</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</WFS_test_wfs:the_geom>
</WFS_test_wfs:PG.省>
<fes:Filter>
<fes:PropertyIsEqualTo>
<fes:ValueReference>省</fes:ValueReference>
<fes:Literal>中国南沙群岛</fes:Literal>
</fes:PropertyIsEqualTo>
</fes:Filter>
</wfs:Replace>
</wfs:Transaction>'
<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ows="http://www.opengis.net/ows/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0.1" xsi:schemaLocation="http://www.opengis.net/ows/2.0" "http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="" locator="">
<ows:ExceptionText>Failed to proc the request. error: Failed to parse transaction body as xml. error=tag mismatch. body=<wfs:Transaction version="2.0.0" service="WFS" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd">
<wfs:Replace>
<WFS_test_wfs:PG.省>
<WFS_test_wfs:省>南沙群岛</WFS_test_wfs:省>
<WFS_test_wfs:省代码>1</WFS_test_wfs:CODE>
<WFS_test_wfs:the_geom>
<gml:Polygon srsName="urn:ogc:def:crs:EPSG::4326">
<gml:exterior>
<gml:LinearRing>
<gml:posList>3.31823363496683 114.085926400034 10.7245463738036 114.085926400034 10.7245463738036 120.16968329265 3.31823363496683 120.16968329265 3.31823363496683 114.085926400034</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</WFS_test_wfs:the_geom>
</WFS_test_wfs:PG.省>
<fes:Filter>
<fes:PropertyIsEqualTo>
<fes:ValueReference>省</fes:ValueReference>
<fes:Literal>中国南沙群岛</fes:Literal>
</fes:PropertyIsEqualTo>
</fes:Filter>
</wfs:Replace>
</wfs:Transaction>.</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>