myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


How to transform XML file to Text file using VB.Net

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Scripting Technologies] >> VB Script >> How to transform XML file to Text file using VB.Net Page: [1]
Login
Message << Older Topic   Newer Topic >>
How to transform XML file to Text file using VB.Net - 9/24/2008 3:20:16 AM   
vzheng

 

Posts: 2
Score: 0
Joined: 9/24/2008
Status: offline
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.
Post #: 1
RE: How to transform XML file to Text file using VB.Net - 9/25/2008 10:53:55 AM   
rbennett806


Posts: 821
Score: 13
Joined: 6/14/2006
Status: offline
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/

(in reply to vzheng)
Post #: 2
RE: How to transform XML file to Text file using VB.Net - 9/25/2008 11:49:20 AM   
jsandys


Posts: 527
Score: 17
Joined: 3/24/2005
From: San Antonio, TX
Status: offline
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.


_____________________________

Jason
________________________________________
http://myitforum.com/cs2/blogs/jsandys/default.aspx

(in reply to rbennett806)
Post #: 3
Page:   [1]
All Forums >> [Scripting Technologies] >> VB Script >> How to transform XML file to Text file using VB.Net Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.250