I have a problem reading some gml files in C #. My files have no schema or namespaces and look like a file from this question:
Parsing GML data using C # Linq for XML
only without this circuit:
<gml:Polygon srsName='http://www.opengis.net/gml/srs/epsg.xml#4283'> <gml:outerBoundaryIs> <gml:LinearRing> <gml:coord> <gml:X>152.035953</gml:X> <gml:Y>-28.2103190007845</gml:Y> </gml:coord> <gml:coord> <gml:X>152.035957</gml:X> <gml:Y>-28.2102020007845</gml:Y> </gml:coord> <gml:coord> <gml:X>152.034636</gml:X> <gml:Y>-28.2100120007845</gml:Y> </gml:coord> <gml:coord> <gml:X>152.034617</gml:X> <gml:Y>-28.2101390007845</gml:Y> </gml:coord> <gml:coord> <gml:X>152.035953</gml:X> <gml:Y>-28.2103190007845</gml:Y> </gml:coord> </gml:LinearRing> </gml:outerBoundaryIs> </gml:Polygon>
When I try to read a document using the XDocument.Load method, I get an exception: 'gml' namespace is not defined .
I have many gml files, so I donβt want to add schemas and namespaces to all my files. Does anyone know how to read my files?
c # xml gml-geographic-markup-lan
taudorf
source share