How to transform XML file to Text file using VB.Net (Full Version)

All Forums >> [Scripting Technologies] >> VB Script



Message


vzheng -> How to transform XML file to Text file using VB.Net (9/24/2008 3:20:16 AM)

Hi,
I need help.
I'm a student who is not very familiar with VB.Net. But i have to use VB.Net to extract XML file from a server and into a Text file.
The XML file will look like this (see below):
<?xml version="1.0" encoding="utf-8" ?>
<response>
<TAG>
<tagid>72057994675</tagid>
<mac>00:10:C6:FD:BD:B3</mac>
<posx>253</posx>
<posy>587</posy>
<posmodelid>96</posmodelid>
<posmapid>0</posmapid>
<poszoneid>-1</poszoneid>
<posmapname>REP_Poly-Model 2</posmapname>
<posquality>42</posquality>
<posreason>3</posreason>
<postime>1217758452921</postime>
<postimestamp>2008-08-03 18:14:12+0800</postimestamp>
<poscounter>284</poscounter>
<battery>90</battery>
</TAG>
</response>

thanks.




rbennett806 -> RE: How to transform XML file to Text file using VB.Net (9/25/2008 10:53:55 AM)

Well, VBScript isn't .NET, so you might have better luck asking in a .NET forum. Maybe one like this one: http://www.vbdotnetforums.com/




jsandys -> RE: How to transform XML file to Text file using VB.Net (9/25/2008 11:49:20 AM)

Tranforming XML is the sole purpose of XSLT. Using XSLT, you can easily transform XML to text. The following article is a good primer: http://msdn.microsoft.com/en-us/magazine/cc302158.aspx.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.203125