Hi everyone, I have a XML question.
I got an XML structure from filegdb_polygon via GeometryExtractor (GML 3.2.1) and XMLFragmenter:
<gml:Surface gml:id="ID_1" srsName="MysrsName" srsDimension="2"><gml:patches><gml:PolygonPatch><gml:exterior><gml:LinearRing><gml:posList>"list of xy coordinates"</gml:posList></gml:LinearRing></gml:exterior></gml:PolygonPatch></gml:patches>
</gml:Surface>
However, my XML structure should look like this:
<gml:MultiSurface srsName="MysrsName" gml:id="ID_1">
<gml:surfaceMember>
<gml:Polygon srsName="MysrsName" gml:id="ID_2">
<gml:exterior>
<gml:LinearRing>
<gml:posList srsDimension="2" count="####">"list of xy coordinates"</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</gml:surfaceMember>
</gml:MultiSurface>
I used XMLUpdater to delete the attribute
/gml:Surface/@srsDimension
and to rename the following elements (Plain Text) :
//gml:Surface -> gml:MultiSurface
//gml:patches -> gml:surfaceMember
//gml:PolygonPatch -> gml:Polygon
But how to create these new attributes:
//gml:Polygon/@srsName
//gml:Polygon/@gml:id
//gml:posList/@srsDimension
//gml:posList/@count
In XMLUpdater documentation it says it can "insert a new element or attribute", but I don't know how to insert new attributes in existing elements.