473,387 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Help with xml and .net

Hey guys, i'm using vb2005 which the code isn't too much different from .net so I figured you could help me.

I have an xml page sitting on a server. My program is looking to that xml page and populating a gallery container based off of nodes in the xml.

My question is....

each <GameIcon> and <FileName> in the xml have to be downloaded to the users local computer. I am wondering how on a button click I can go about this.

The program needs to first see if the file it is going to write is allready there. if not it writes the file. Can you help me out. Thanks





<?xml version="1.0" encoding="utf-8" ?>
<itemlist>
<item>
<GameName>BubbleCannon</GameName>
<GameIcon>C:\Program Files\MidTenMedia\KERClink\Images\text_rich_colore d_view.png</GameIcon>
<FileName>D:\Websites\KERclink\Website\populateGam es\WebSite\swf\bubbleCannon.swf</FileName>
</item>
<item>
<GameName>Tiles</GameName>
<GameIcon>C:\Program Files\MidTenMedia\KERClink\Images\signpost_32x32.p ng</GameIcon>
<FileName>D:\Websites\KERclink\Website\populateGam es\WebSite\swf\tiles.swf</FileName>
</item>
<item>
<GameName>Runes</GameName>
<GameIcon>C:\Program Files\MidTenMedia\KERClink\Images\refresh_32x32.pn g</GameIcon>
<FileName>D:\Websites\KERclink\Website\populateGam es\WebSite\swf\runes.swf</FileName>
</item>
<item>
<GameName>Pirate Ship</GameName>
<GameIcon>C:\Program Files\MidTenMedia\KERClink\Images\id_card.png</GameIcon>
<FileName>D:\Websites\KERclink\Website\populateGam es\WebSite\swf\pirateship.swf</FileName>
</item>
<item>
<GameName>DropLink</GameName>
<GameIcon>C:\Program Files\MidTenMedia\KERClink\Images\chest.ico</GameIcon>
<FileName>D:\Websites\KERclink\Website\populateGam es\WebSite\swf\droplink.swf</FileName>
</item>
</itemlist>
May 25 '07 #1
1 1013
Use System.Xml classes to load your xml and iterate your nodes.
Use System.IO.File to manipulate your files.

Good luck.
May 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
3
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> With...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
0
by: hitencontractor | last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003. I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About. The application...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.