我已经知道,解析Wowarmoy的XML以获取数据。但是有一些我找不到的数据。

像这个URL”http://www.wowarmory.com/item-info.xml?i=40155".

<itemInfo>
 <item canAuction="1" icon="inv_jewelcrafting_gem_39" id="40155" level="80" name="Reckless Ametrine" quality="4" type="Orange">
  <cost buyPrice="360000" sellPrice="90000"/>
  <vendors>
    <creature area="Trial of the Crusader" classification="0" heroic="1" id="33290" maxLevel="80" minLevel="80" name="Jillian McWeaksauce" title="The Cutest McWeaksauce" type="Humanoid"/>
  </vendors>
  <createdBy>
    <spell icon="inv_misc_gem_01" id="66574" name="Reckless Ametrine">

      <reagent count="1" icon="inv_jewelcrafting_gem_33" id="36931" name="Ametrine" quality="4"/>
    </spell>
  </createdBy>
</item>
</itemInfo>

XML包含诸如名称,ID,质量,类型之类的信息,但细节属性如咒语功率,急速评级。但是,在浏览器中打开此URL,我们当然可以查看这些详细信息。

因此,任何人都知道如何/在哪里获取详细信息,例如攻击能力,物品的拼写功率。非常感谢。

有帮助吗?

解决方案

我已经弄清楚了如何。只是解析此URL:”http://www.wowarmory.com/item-tooltip.xml“使用类似“ i = 40155”的参数,并且有一个节点显示我上面提到的属性。

<gemProperties>+12 Spell Power and +10 Haste Rating</gemProperties>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top