Help with xml and .net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xxjoebreadxx
    New Member
    • May 2007
    • 1

    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>Bubbl eCannon</GameName>
    <GameIcon>C:\Pr ogram Files\MidTenMed ia\KERClink\Ima ges\text_rich_c olored_view.png </GameIcon>
    <FileName>D:\We bsites\KERclink \Website\popula teGames\WebSite \swf\bubbleCann on.swf</FileName>
    </item>
    <item>
    <GameName>Tiles </GameName>
    <GameIcon>C:\Pr ogram Files\MidTenMed ia\KERClink\Ima ges\signpost_32 x32.png</GameIcon>
    <FileName>D:\We bsites\KERclink \Website\popula teGames\WebSite \swf\tiles.swf</FileName>
    </item>
    <item>
    <GameName>Runes </GameName>
    <GameIcon>C:\Pr ogram Files\MidTenMed ia\KERClink\Ima ges\refresh_32x 32.png</GameIcon>
    <FileName>D:\We bsites\KERclink \Website\popula teGames\WebSite \swf\runes.swf</FileName>
    </item>
    <item>
    <GameName>Pirat e Ship</GameName>
    <GameIcon>C:\Pr ogram Files\MidTenMed ia\KERClink\Ima ges\id_card.png </GameIcon>
    <FileName>D:\We bsites\KERclink \Website\popula teGames\WebSite \swf\pirateship .swf</FileName>
    </item>
    <item>
    <GameName>DropL ink</GameName>
    <GameIcon>C:\Pr ogram Files\MidTenMed ia\KERClink\Ima ges\chest.ico</GameIcon>
    <FileName>D:\We bsites\KERclink \Website\popula teGames\WebSite \swf\droplink.s wf</FileName>
    </item>
    </itemlist>
  • oohay251
    New Member
    • May 2007
    • 27

    #2
    Use System.Xml classes to load your xml and iterate your nodes.
    Use System.IO.File to manipulate your files.

    Good luck.

    Comment

    Working...