Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Pessoal , antes de tudo boa noite.
Gostaria de fazer um array com as informações vindo de um arquivo xml.
Supondo que no arquivo XML eu tenha essas informações
<item id="39962" name="Concentration" cname="ITEM_PET2_PRO_70_F" desc="When the Fellow's HP falls below 70%, the Fellow's Magic Defense is increased." isMall="0" type="3" type2="0" canTrade="1" canEquip="0" buy="591000" sell="0" r1="1" t1="70" r2="-1" t2="0" r3="-1" t3="0" r4="-1" t4="0" r5="-1" t5="0" pict="pet2\skill\pet2_skill_pro_around_c.png" stack="1" sexe="4" degree="1">
<attr v="-1" s="P2SKILL_PRO_70_F" /></item>
<item id="39979" name="Increase Strength" cname="ITEM_PET2_ENC_70_A" desc="Increases your Strength." isMall="0" type="3" type2="0" canTrade="1" canEquip="0" buy="591000" sell="0" r1="1" t1="70" r2="-1" t2="0" r3="-1" t3="0" r4="-1" t4="0" r5="-1" t5="0" pict="pet2\skill\pet2_skill_enc_around_c_1.png" stack="1" sexe="5" degree="1">
<attr v="-1" s="P2SKILL_ENC_70_A" /></item>
<item id="39996" name="Increase Intelligence" cname="ITEM_PET2_ENC_70_B" desc="Increases your Intelligence." isMall="0" type="3" type2="0" canTrade="1" canEquip="0" buy="591000" sell="0" r1="1" t1="70" r2="-1" t2="0" r3="-1" t3="0" r4="-1" t4="0" r5="-1" t5="0" pict="pet2\skill\pet2_skill_enc_around_c.png" stack="1" sexe="5" degree="1">
<attr v="-1" s="P2SKILL_ENC_70_B" /></item>
<item id="40013" name="Increase Vitality" cname="ITEM_PET2_ENC_70_C" desc="When your HP falls below 50%, your some of HP is recovered." isMall="0" type="3" type2="0" canTrade="1" canEquip="0" buy="591000" sell="0" r1="1" t1="70" r2="-1" t2="0" r3="-1" t3="0" r4="-1" t4="0" r5="-1" t5="0" pict="pet2\skill\pet2_skill_enc_around_c_1.png" stack="1" sexe="5" degree="1">
<attr v="-1" s="P2SKILL_ENC_70_C" /></item>
<item id="40030" name="Recover" cname="ITEM_PET2_ENC_70_D" desc="When your MP falls below 50%, your some of MP is recovered." isMall="0" type="3" type2="0" canTrade="1" canEquip="0" buy="591000" sell="0" r1="1" t1="70" r2="-1" t2="0" r3="-1" t3="0" r4="-1" t4="0" r5="-1" t5="0" pict="pet2\skill\pet2_skill_enc_around_c.png" stack="1" sexe="5" degree="1">
<attr v="-1" s="P2SKILL_ENC_70_D" /></item>
Como eu faria para resgatar somente o id,name,cname e pict? Pois são 36 mil linhas e jogar tudo no banco de dados ficaria extremamente cansativo e a cada atualização teria que atualizar o banco.
quais quer duvidas ou opniões postem porfavor , cada um contribui com oque pode :)
Agradeço a todos!
Carregando comentários...