Tuesday, 6 August 2013

How do i Read This XML Corretly[VB.NET]

How do i Read This XML Corretly[VB.NET]

I have been searching on how to read a xml on VB.NET, nodes and stuff but
i dont really find anything that helps me to understand it.
I want to read this XML
<item_proto extended="true" version="1">
<Item vnum="1" name="'y'" gb2312name="Treasure" type="9" subtype="0"
weight="0" size="1" antiflag="0" flag="0" wearflag="0" immuneflag="0"
gold="0" buy_price="0" limittype0="0" limitvalue0="0" limittype1="0"
limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0"
applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0"
value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0"
socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="11"
refine_set="11" magic_pct="0" specular="0" socket_pct="0" />
<Item vnum="2" name="'l'" gb2312name="Key" type="0" subtype="0"
weight="0" size="1" antiflag="0" flag="0" wearflag="0" immuneflag="0"
gold="0" buy_price="0" limittype0="0" limitvalue0="0" limittype1="0"
limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0"
applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0"
value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0"
socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="11"
refine_set="11" magic_pct="0" specular="0" socket_pct="0" />
<Item vnum="19" name="'e9'" gb2312name="Sword" type="1" subtype="0"
weight="0" size="2" antiflag="32" flag="1" wearflag="16"
immuneflag="0" gold="100" buy_price="750" limittype0="1"
limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7"
applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0"
applyvalue2="0" value0="0" value1="15" value2="19" value3="13"
value4="15" value5="63" socket0="0" socket1="64992" socket2="127"
socket3="64976" socket4="21631" socket5="4855" refine_vnum="0"
refine_set="0" magic_pct="15" specular="100" socket_pct="1" />
</item_proto>
I have tried many ways but without sucess
IF Possible, i want to read just 1 of the nodes i think that what its
called, i want to read the 'gb2312name'.
Thanks in Advance.

No comments:

Post a Comment