Groups | Blog | Home
all groups > dotnet xml > december 2005 >

dotnet xml : newbie how do i read the following values in a XML file



dogo
12/1/2005 10:46:33 PM
Hi a newbie to VB2005.

I have the following xml file that i would like to read there value in, and
place the result into a relevent textbox

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="reg.xsl"?>
<bml>
<type>
<modes>449B27</modes>
<country></country>
</transmission>
<regdata>
<registration></registration>
<currentregdate></currentregdate>
<previousid></previousid>
<firstregdate></firstregdate>
<status></status>
<deregdate></deregdate>
<manufacturer>Ford</manufacturer>
<type></type>
<serialno></serialno>
<popularname></popularname>
<genericname></genericname>
<carclass></carclass>
<engine></engine>
<ownershipstatus></ownershipstatus>
<registeredowners></registeredowners>
<mtow></mtow>
<totalhours></totalhours>
<yearbuilt></yearbuilt>
<category></category>
<expiry></expiry>
</regdata>
<user>
<notes></notes>
</user>
<history/>
</bml>

can anyone please show/provide a working example how i may do this or point
me towards an
idots guide on how to do it

cheers

Darren

niceguy
12/3/2005 7:14:42 PM
Check out
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpqstart/html/cpsmpnetsamples-howtoxmldata.asp
for a bunch of samples...

if you just want to get values from an xml document, check out the
XmlTextReader and XmlDocument classes.



[quoted text, click to view]

AddThis Social Bookmark Button