title: Golang XML parse
body: <p>My XML data:</p>
  
  <pre><code>&lt;dictionary version="0.8" revision="403605"&gt;
      &lt;grammemes&gt;
          &lt;grammeme parent=""&gt;POST&lt;/grammeme&gt;
          &lt;grammeme parent="POST"&gt;NOUN&lt;/grammeme&gt;
      &lt;/grammemes&gt;
  &lt;/dictionary&gt;
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>type Dictionary struct {
      XMLName xml.Name `xml:"dictionary"`
      Grammemes *Grammemes `xml:"grammemes"`
  }
  
  type Grammemes struct {
      Grammemes []*Grammeme `xml:"grammeme"`
  }
  
  type Grammeme struct {
      Name string `xml:"grammeme"`
      Parent string `xml:"parent,attr"`
  }
  </code></pre>
  
  <p>I get Grammeme.Parent attribute, but i don't get Grammeme.Name. Why?</p>