title: Vb.Net XmlDeseralize xml attributes into class object
body: <p>I am having trouble deserializing xml attributes into class properties.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; 
  &lt;Ball clientid="xyz"&gt;
      &lt;Name&gt;Tommy&lt;/Name&gt;
      &lt;ballColor transactionid="1234"&gt;White&lt;/ballColor&gt;
      &lt;radius&gt;9&lt;/radius&gt;
      &lt;PowerLevel&gt;9001&lt;/PowerLevel&gt;
      &lt;RandomProp&gt;This is another property&lt;/RandomProp&gt;
  &lt;/Ball&gt;
  </code></pre>
  
  <p>Is the XML i am using... and now I will post the code I have. The thing is I am able to get the clientid into the property, but not the 'transactionid' So I am having trouble pulling out the attribute of a child element</p>
  
  <pre><code>Imports System.Xml.Serialization
  Public Class Ball
      Inherits ballColor
      Public Property Name As String
      Public Property radius As Double
      Public Property PowerLevel As String
      Public Property RandomProp As String
      &lt;XmlAttribute("clientid")&gt; Public Property clientid() As String
  
  
      Public Sub New()
  
      End Sub
  
  
  End Class
  &lt;XmlRoot("Ball")&gt;
  Public Class ballColor
      &lt;XmlElement("ballColor")&gt; Public Property ballColor As String
      &lt;XmlAttribute("transactionid")&gt; Public Property transactionid As String
      Public Sub New()
  
      End Sub
  End Class
  </code></pre>
  
  <p>So I have the actual deserialize call on a form but that doesn't seem to be my issue because when I run this, literally every property gets filled correctly besides the transactionid. What am I doing wrong??</p>