Results 1 to 8 of 8

Thread: [2005] Just a little XML question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    153

    [2005] Just a little XML question

    Is it possible to edit and XML file that is located on your website for instance? So that I don't need to upload that XML file over and over...

  2. #2
    Lively Member SharkC382's Avatar
    Join Date
    Jul 2007
    Location
    Kennesaw, Ga
    Posts
    68

    Re: [2005] Just a little XML question

    Look at it more from the perspective of how you can save the file. When you open the file, it has been transferred to your computer already, and then you can do whatever you want with it, but if the path to the file is not located on a local drive, or a network share, then you'll have to save the file locally, and then transfer it back.
    There are a number of easy methods to ftp a file using code.

    Another way would be to have a page with a simple editor on that same site. But then you get into issues with permissions.

    Matt

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    153

    Re: [2005] Just a little XML question

    But if it is my own site?

  4. #4
    Frenzied Member bmahler's Avatar
    Join Date
    Oct 2005
    Location
    Somewhere just west of the Atlantic
    Posts
    1,568

    Re: [2005] Just a little XML question

    Just because it is your own site does not mean that you don't have to ftp the file back. Is the server on your local network? If so, then you can just open the file, edit it and save it again, otherwise you will need to get the file from the webserver, edit it, save it and re-upload it to that server just like SharkC382 said.
    Boooya
    • Visual Studio 2008 Professional
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • Don't forget to rate helpful posts!
    • If you're question was answered please mark your thread [Resolved]


    Code Contributions:
    PHP
    PHP Image Gallery v1.0PHP Image Gallery v2.0
    VB 2005
    Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


    Useful Links: (more to come)
    MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds

  5. #5
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: [2005] Just a little XML question

    Quote Originally Posted by Maglor
    Is it possible to edit and XML file that is located on your website for instance? So that I don't need to upload that XML file over and over...
    Yes. Remote Desktop Connection. I updated two different websites on two different servers through RDP a couple days ago.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    153

    Re: [2005] Just a little XML question

    And another thing. To be able to get the values of those items in that XML file, do I need to save the XML file on my computer first? Because if so, then players (I'm making a game) could edit the XML file and get all those items cheaper... And That's not really what I want

  7. #7
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: [2005] Just a little XML question

    On a web site, it would be easy to do what you want. I'm not sure about local applications...

  8. #8
    Addicted Member
    Join Date
    Jul 2005
    Location
    Warren, MI
    Posts
    209

    Re: [2005] Just a little XML question

    I do something similar for my game, however, what I do is download the file into the application. So, what I do is setup a web page that gets the source of the xml and returns it. Then I use a web request to hit that page, and the response is the actual xml file. There is not really any opportunity for them to alter the file at this point. Then, when the game does whatever it does, I generate the file in the application, and have it upload it from there.
    My first VB.net application which took over a year to complete... 1483online.com. Multiplayer Online Strategy game. It's not much, but I learned A LOT doing it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width