XML node value VB.net -
XML node value VB.net -
i'm trying extract value within node, cannot seem work. want value= name="container.deviceid"
<coreproperties> <coreproperty name="common.applicationhome" value="1" /> <coreproperty name="common.installationhome" value="2" /> <coreproperty name="container.deviceid" value="3"/> <coreproperty name="service.deviceid" value="4/> <coreproperty name="service.devicetype" value="5" /> <coreproperty name="service.locationid" value="6" /> </coreproperties>
this have far
doc.load(file1) dim root xmlnode = doc.documentelement dim nodedeviceid xmlnode = root.selectsinglenode("/coreproperties/coreproperty[@name='container.deviceid']") dim deviceid string = nodedeviceid.attributes.itemof("value").innertext
xml vb.net xmlnode
Comments
Post a Comment