title: Error unmarshalling GML with golang encoding/xml
body: <p>I am trying to unmarshal some XML, actually Geography Markup Language (GML).</p>
  
  <p>I have an example at <a href="http://play.golang.org/p/qS6GjCOtHF" rel="nofollow">http://play.golang.org/p/qS6GjCOtHF</a></p>
  
  <p>Two problems, the first:</p>
  
  <blockquote>
    <p>error reading xml main.FeatureCollection field "LowerCorner" with tag "boundedBy>Envelope>lowerCorner" conflicts with field "Envelope" with tag "boundedBy>Envelope"</p>
  </blockquote>
  
  <p>I have no idea how to fix that. I commented those out and get the GML to unmarshal without errors but then there are no <code>Features</code> in the <code>FeatureCollection</code>.</p>
  
  <p>Any clues?</p>
  
  <p>An example of the GML is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;gml:FeatureCollection xmlns:gml="http://www.opengis.net/gml"
      xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:fme="http://www.safe.com/gml/fme" xsi:schemaLocation="http://www.safe.com/gml/fme tblMainGML.xsd"&gt;
      &lt;gml:boundedBy&gt;
          &lt;gml:Envelope srsName="EPSG:3112" srsDimension="2"&gt;
              &lt;gml:lowerCorner&gt;45.2921142578125 -80.2166748046875&lt;/gml:lowerCorner&gt;
              &lt;gml:upperCorner&gt;169.000122070313 -9.14251708984375&lt;/gml:upperCorner&gt;
          &lt;/gml:Envelope&gt;
      &lt;/gml:boundedBy&gt;
      &lt;gml:featureMember&gt;
          &lt;fme:GML gml:id="id5255fa48-42b3-43d1-9e0d-b2ba8b57a936"&gt;
              &lt;fme:OBJECTID&gt;1&lt;/fme:OBJECTID&gt;
              &lt;fme:RECORD_ID&gt;QLD48234&lt;/fme:RECORD_ID&gt;
              &lt;fme:NAME&gt;HATCHMAN POINT&lt;/fme:NAME&gt;
              &lt;fme:FEAT_CODE&gt;PT&lt;/fme:FEAT_CODE&gt;
              &lt;fme:CGDN&gt;N&lt;/fme:CGDN&gt;
              &lt;fme:AUTHORITY_ID&gt;QLD&lt;/fme:AUTHORITY_ID&gt;
              &lt;fme:CONCISE_GAZ&gt;N&lt;/fme:CONCISE_GAZ&gt;
              &lt;fme:LATITUDE&gt;-12.58361&lt;/fme:LATITUDE&gt;
              &lt;fme:lat_degrees&gt;-12&lt;/fme:lat_degrees&gt;
              &lt;fme:lat_minutes&gt;35&lt;/fme:lat_minutes&gt;
              &lt;fme:lat_seconds&gt;0&lt;/fme:lat_seconds&gt;
              &lt;fme:LONGITUDE&gt;141.62583&lt;/fme:LONGITUDE&gt;
              &lt;fme:long_degrees&gt;141&lt;/fme:long_degrees&gt;
              &lt;fme:long_minutes&gt;37&lt;/fme:long_minutes&gt;
              &lt;fme:long_seconds&gt;32&lt;/fme:long_seconds&gt;
              &lt;fme:STATE_ID&gt;QLD&lt;/fme:STATE_ID&gt;
              &lt;fme:STATUS&gt;U&lt;/fme:STATUS&gt;
              &lt;fme:VARIANT_NAME /&gt;
              &lt;fme:MAP_100K&gt;7272&lt;/fme:MAP_100K&gt;
              &lt;fme:Place_ID&gt;45880&lt;/fme:Place_ID&gt;
              &lt;gml:pointProperty&gt;
                  &lt;gml:Point srsName="EPSG:3112" srsDimension="2"&gt;
                      &lt;gml:pos&gt;141.625915527344 -12.5836181640625&lt;/gml:pos&gt;
                  &lt;/gml:Point&gt;
              &lt;/gml:pointProperty&gt;
          &lt;/fme:GML&gt;
      &lt;/gml:featureMember&gt;
  &lt;/gml:FeatureCollection&gt;
  &lt;/xml&gt;
  </code></pre>
  
  <p>My structs</p>
  
  <pre><code>type FeatureCollection struct {
      Xsi            string   `xml:"xsi,attr"`
      Fme            string   `xml:"fme,attr"`
      Gml            string   `xml:"gml,attr"`
      Xlink          string   `xml:"xlink,attr"`
      LowerCorner    string   `xml:"boundedBy&gt;Envelope&gt;lowerCorner"`
      UpperCorner    string   `xml:"boundedBy&gt;Envelope&gt;upperCorner"`
      Envelope       Envelope `xml:"boundedBy&gt;Envelope"`
      SchemaLocation string   `xml:"schemaLocation,attr"`
      Features       []Feature
  }
  
  type Feature struct {
      PlaceID     string `xml:"featureMember&gt;GML&gt;Place_ID"`
      StateID     string `xml:"featureMember&gt;GML&gt;STATE_ID"`
      Postcode    string `xml:"featureMember&gt;GML&gt;POSTCODE"`
      CGDN        string `xml:"featureMember&gt;GML&gt;CGDN"`
      Map100K     string `xml:"featureMember&gt;GML&gt;MAP_100K"`
  ETC...
  }
  </code></pre>