Yea, I ended up doing that too.
Also, playing around with the API without creating a webreference to the
DDI service, I also used a simple approach and just loaded the url into an XDocument. Then I can easily traverse the monsterlist with Linq to Xml.
Code:
XDocument monsterXml = GetSearchResults("http://www.wizards.com/dndinsider/compendium/CompendiumSearch.asmx/KeywordSearch?Keywords=Human+Guard&tab=Monster")
public XDocument GetSearchResults(string url)
{
XDocument resultsXml = new XDocument();
try
{
resultsXml = XDocument.Load(url);
}
catch (Exception e)
{
throw e;
}
return resultsXml;
}