title: golang XML not unmarshal-ing properly
body: <p>The XML format I need to unmarshal is as follows:</p>
  
  <pre><code>data := `
  &lt;table&gt;
      &lt;name&gt;
          &lt;code&gt;23764&lt;/code&gt;
          &lt;name&gt;Smith, Jane&lt;/name&gt;
      &lt;/name&gt;
      &lt;name&gt;
          &lt;code&gt;11111&lt;/code&gt;
          &lt;name&gt;Doe, John&lt;/name&gt;
      &lt;/name&gt;
  &lt;/table&gt;
  `
  </code></pre>
  
  <p>I have attempted the following structs and code to no avail:</p>
  
  <pre><code>type Customers struct {
  
      XMLName xml.Name `xml:"table"`
      Custs []Customer
  }
  
  type Customer struct {
  
      XMLName xml.Name `xml:"name"`
      Code string `xml:"code"`
      Name string `xml:"name"`
  }
  
  ...
  
  var custs Customers
  err := xml.Unmarshal([]byte(data), &amp;custs)
  if err != nil {
      fmt.Printf("error: %v", err)
      return
  }
  
  fmt.Printf("%v", custs)
  
  for _, cust := range custs.Custs {
  
      fmt.Printf("Cust:\n%v\n", cust)
  }
  </code></pre>
  
  <p>The range prints nothing out, and printing <code>custs</code> only gives me <code>{{ table} []}</code></p>