Fremvis XML data på HTML side.
HejsaJeg kender ikke rigtig noget til XML. Men jeg har behov for at vise noget XML data frem på en side.
Så håbede at I kunne hjælpe mig i gang. Det jeg søger er ret simpelt.
Jeg er bruger på en side som giver mulighed for at udtrække en turneringsstilling via XML. Det ser ud noget i stil med dette:
Denne XML-fil har ingen stilinformation tilknyttet. Dokumenttræet vises herunder.
<ManagerZone_TeamFriendlyLeague>
<Team position="1" teamId="100280" teamName="Skovhuse AC" played="25" won="25" drawn="0" lost="0" goalsPlus="147" goalsMinus="15" goalsDifference="132" points="75"/>
<Team position="2" teamId="99798" teamName="Black Mamba FC" played="25" won="22" drawn="0" lost="3" goalsPlus="128" goalsMinus="21" goalsDifference="107" points="66"/>
<Team position="3" teamId="82063" teamName="Dinamike" played="25" won="19" drawn="1" lost="5" goalsPlus="128" goalsMinus="24" goalsDifference="104" points="58"/>
<Team position="4" teamId="82536" teamName="BanadiR FC" played="25" won="17" drawn="5" lost="3" goalsPlus="107" goalsMinus="26" goalsDifference="81" points="56"/>
<Team position="5" teamId="81955" teamName="Kettering Town FC" played="25" won="18" drawn="0" lost="7" goalsPlus="95" goalsMinus="30" goalsDifference="65" points="54"/>
<Team position="6" teamId="119580" teamName="Sandon Lasers" played="25" won="17" drawn="1" lost="7" goalsPlus="102" goalsMinus="33" goalsDifference="69" points="52"/>
<Team position="7" teamId="119153" teamName="Deez Hot Nutz" played="25" won="16" drawn="1" lost="8" goalsPlus="118" goalsMinus="35" goalsDifference="83" points="49"/>
<Team position="8" teamId="82597" teamName="Home Wreckers FC" played="25" won="13" drawn="0" lost="12" goalsPlus="73" goalsMinus="57" goalsDifference="16" points="39"/>
<Team position="9" teamId="115808" teamName="Launceston" played="25" won="11" drawn="2" lost="12" goalsPlus="68" goalsMinus="62" goalsDifference="6" points="35"/>
<Team position="10" teamId="117960" teamName="burscough fc" played="25" won="10" drawn="3" lost="12" goalsPlus="72" goalsMinus="67" goalsDifference="5" points="33"/>
<Team position="11" teamId="144950" teamName="FC PokerStars" played="25" won="6" drawn="2" lost="17" goalsPlus="32" goalsMinus="87" goalsDifference="-55" points="20"/>
<Team position="12" teamId="115834" teamName="Newnham United" played="25" won="5" drawn="2" lost="18" goalsPlus="27" goalsMinus="73" goalsDifference="-46" points="17"/>
<Team position="13" teamId="164063" teamName=" FC Banik Kingskettle" played="25" won="4" drawn="2" lost="19" goalsPlus="37" goalsMinus="98" goalsDifference="-61" points="14"/>
<Team position="14" teamId="144842" teamName="Galactic Scousers" played="25" won="3" drawn="2" lost="20" goalsPlus="28" goalsMinus="176" goalsDifference="-148" points="11"/>
<Team position="15" teamId="164017" teamName="Burntisland United" played="25" won="2" drawn="0" lost="23" goalsPlus="16" goalsMinus="226" goalsDifference="-210" points="6"/>
<Team position="16" teamId="117105" teamName="Norfolk N Chancers" played="25" won="1" drawn="1" lost="23" goalsPlus="14" goalsMinus="162" goalsDifference="-148" points="4"/>
</ManagerZone_TeamFriendlyLeague>
Jeg har et link tilrådighed (http://www.managerzone.com/xml/friendlyleague.php?sport_id=1&friendlyleague_id=325534)
Jeg håber nogen lige har et hurtigt eksemple, som jeg kan bruge til at udtrække det med.