I am trying to build a XML document using the GML namespace and XML to LINQ.
My goal is an XElement
with contents like this:
<gml:name>...</gml:name>
But I get the following:
<name xmlns="http://www.opengis.net/gml" />
The problem is that the gml:
is missing from the element. Why is that?
My code is as follows:
XNamespace nsGML = "http://www.opengis.net/gml";
XElement item = new XElement(nsGML + "name");