The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Displaying XML Results in Table
I am looking to (minimally) scrape the info from am XML file and display it in a table on my web site (either a php file or a template).
Any idea how to do that? As seen in this guide, here are some examples (there might be a few XML files that I'd want to): Code:
<apiresponse> <guild name="The crafting union" world="Landroval" theme="Mixed Kinship Theme" memberCount="148"> <characters> <character name="Drahc" level="13" class="Champion" race="Dwarf" rank="Recruit"/> <character name="Kimwen" level="17" class="Rune-keeper" race="Elf" rank="Recruit"/> <character name="Lorrow" level="22" class="Lore-master" race="Race of Man" rank="Recruit"/> <character name="Lycaeum" level="50" class="Champion" race="Dwarf" rank="Recruit"/> <character name="Madrina" level="23" class="Minstrel" race="Hobbit" rank="Recruit"/> <character name="Midora" level="32" class="Hunter" race="Hobbit" rank="Recruit"/> <character name="Pildo" level="12" class="Minstrel" race="Hobbit" rank="Recruit"/> <character name="Ronarin" level="10" class="Guardian" race="Race of Man" rank="Recruit"/> </characters> </guild> </apiresponse> Code:
<?xml version="1.0" encoding="UTF-8" ?> <apiresponse> <character name="Valdidar" world="Landroval" monster="0" race="Race of Man" class="Lore-master" level="53" origin="Gondor"> <guild name="Knights of the White Lady" rank="Member" type="Mixed Kinship Theme" /> <vocation name="Armsman"> <professions> <profession name="Weaponsmith" proficiency="5" mastery="5" /> <profession name="Woodworker" proficiency="4" mastery="3" /> <profession name="Prospector" proficiency="6" mastery="5" /> </professions> </vocation> <pvmp ratingPoints="1111.44" gloryPoints="4789" gloryRank="3" /> <stats> <stat name="morale" value="2996" /> <stat name="power" value="2206" /> <stat name="armour" value="1987" /> <stat name="might" value="117" /> <stat name="agility" value="194" /> <stat name="vitality" value="318" /> <stat name="will" value="277" /> <stat name="fate" value="286" /> <stat name="radiance" value="0" /> </stats> <equipment> <item name="Hat of the Elder Days" slot="Head" lorebookEntry="http://lorebook.lotro.com/wiki/Special:LotroResource?id=1879094671" /> <item name="Survivor's Robe" slot="Chest" lorebookEntry="http://lorebook.lotro.com/wiki/Special:LotroResource?id=1879145632" /> <item name="Feldskyn Leggings" slot="Legs" lorebookEntry="http://lorebook.lotro.com/wiki/Special:LotroResource?id=1879102465" /> <item name="Gloves of the Elder Days" slot="Gloves" lorebookEntry="http://lorebook.lotro.com/wiki/Special:LotroResource?id=1879094666" /> <item name="Scholar of N?r-khelab" slot="Boots" lorebookEntry="http://lorebook.lotro.com/wiki/Special:LotroResource?id=1879145637" /> </equipment> </character> </apiresponse> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|