title: Reading XML file line by line
body: <p>I am new to go and trying to write a script to parse multiple soap responses.</p>
  
  <p>Here is a snippet of the xml snippet of the xml I am trying to parse. Its a  full SOAP response but I have just included that tags I wish to parse</p>
  
  <pre><code>            &lt;Results xsi:type="AccountUser"&gt;
                  &lt;Client&gt;
                      &lt;ID&gt;72rere341&lt;/ID&gt;
                  &lt;/Client&gt;
                  &lt;PartnerKey xsi:nil="true" /&gt;
                  &lt;PartnerProperties&gt;
                      &lt;Name&gt;email&lt;/Name&gt;
                      &lt;Value&gt;example1@test1.com&lt;/Value&gt;
                  &lt;/PartnerProperties&gt;
                  &lt;ID&gt;755454475&lt;/ID&gt;
                  &lt;ObjectID xsi:nil="true" /&gt;
                  &lt;UserID&gt;5fd0acfc-6crerfrgrfe6e9a675f65&lt;/UserID&gt;
                  &lt;ActiveFlag&gt;true&lt;/ActiveFlag&gt;
                  &lt;Delete&gt;0&lt;/Delete&gt;
                  &lt;LastSuccessfulLogin&gt;2014-11-07T16:00:46.747&lt;/LastSuccessfulLogin&gt;
              &lt;/Results&gt;
              &lt;Results xsi:type="AccountUser"&gt;
                  &lt;Client&gt;
                      &lt;ID&gt;72rere5341&lt;/ID&gt;
                  &lt;/Client&gt;
                  &lt;PartnerKey xsi:nil="true" /&gt;
                  &lt;PartnerProperties&gt;
                      &lt;Name&gt;email&lt;/Name&gt;
                      &lt;Value&gt;example2@test1.com&lt;/Value&gt;
                  &lt;/PartnerProperties&gt;
                  &lt;ID&gt;7225483&lt;/ID&gt;
                  &lt;ObjectID xsi:nil="true" /&gt;
                  &lt;UserID&gt;example2@test1.com&lt;/UserID&gt;
                  &lt;ActiveFlag&gt;false&lt;/ActiveFlag&gt;
                  &lt;Delete&gt;0&lt;/Delete&gt;
                  &lt;LastSuccessfulLogin&gt;2015-04-29T05:01:27.85&lt;/LastSuccessfulLogin&gt;
              &lt;/Results&gt;
  </code></pre>
  
  <p>I would like to print each <code>result</code> on a new line.</p>
  
  <p>Here is a snippet of my code:</p>
  
  <pre><code>package main 
  
  
  import (
  
      "os"
      "fmt"
      "encoding/xml"
      "io/ioutil"
  
  )
  
  type AccountUser struct {
  
  
      ParentMID string `xml:"Client&gt;ID"`
      EmailAddress string `xml:"PartnerProperties&gt;Value"`
      BuinessUnit string `xml:"ID"`
      UserID string `xml:"UserID"`
      Active string`xml:"ActiveFlag"`
      LastSucessfulLogin string`xml:"LastSucessfulLogin"`
  
  }
  
  type Email struct {
  
      Email string `xml:"PartnerProperties&gt;Value"`
  }
  
  
  type Query struct {
      Accounts AccountUser
      AccountList []Email `xml:"PartnerProperties&gt;Value"`
  }
  
  func (a AccountUser) String() string {
      return fmt.Sprintf("%s - %s - %s", a.ParentMID, a.EmailAddress, a.UserID)
  }
  
  
  func main() {
      xmlFile, err := os.Open("Results.xml")
      if err != nil {
          fmt.Println("Error opening file:", err)
          return
      }
      defer xmlFile.Close()
  
      b, _ := ioutil.ReadAll(xmlFile)
  
      var q Query
      xml.Unmarshal(b, &amp;q)
  
      fmt.Println(q.Accounts)
      for _, account := range q.AccountList {
          fmt.Printf("\t%s\n", account)
      }
  }
  </code></pre>
  
  <p>When I run this in terminal, It returns nothing
  ie. </p>
  
  <pre><code>-     - //just the string in the function
  </code></pre>
  
  <p>I would love pointers on how I can resolve this. </p>