title: wowarmory.com API help
body: <p>I'm developing a simple application that fetches some data from wowarmory.com. What I need to do is fetch reputations for a character. I know where's the api located:</p>
  
  <pre><code>http://www.wowarmory.com/character-reputation.xml?r=Realm&amp;cn=CharacterName
  </code></pre>
  
  <p>I can fetch the XML and load it into the SimpleXML object but I'm having trouble figuring out how to get the current and maximum reputation for each faction from the XML. Here's an example of XML:</p>
  
  <pre><code>&lt;faction id="69" key="darnassus" name="Darnassus" reputation="35023"/&gt;
  &lt;faction id="930" key="exodar" name="Exodar" reputation="26805"/&gt;
  &lt;faction id="54" key="gnomereganexiles" name="Gnomeregan Exiles" reputation="23433"/&gt;
  &lt;faction id="47" key="ironforge" name="Ironforge" reputation="29410"/&gt;
  </code></pre>
  
  <p>There's only the attribute 'reputation' there for each faction. How do I calculate the maximum and current reputation from it though? Seems like there are missing attributes.</p>
  
  <p>Can somebody point me to the right direction?</p>