Client Login Area
Main Menu
Results 1 to 7 of 7

Thread: C# XML Serialization

  1. #1
    Verified Community Member
    Join Date
    March 8, 2010
    Location
    Lakewood, CO
    Posts
    700

    Default C# XML Serialization

    So I have a method to serialize some data to xml. Now to update it would i just call the same method or would that just add the something again to the same xml file? If it would just add the something twice how would i go about updating the xml? I have about 20 different layout of xml files depending on what the program is saving.
    Living to Kill, Killing to Live

    Come learn more about Project NLIXD!

  2. #2
    ASPnix Administration Chris's Avatar
    Join Date
    October 11, 2008
    Location
    Denver, Colorado
    Posts
    802
    Christopher York
    ASPnix Administration Team
    www.aspnix.com

  3. #3
    Verified Community Member
    Join Date
    March 8, 2010
    Location
    Lakewood, CO
    Posts
    700

    Default

    Thats where i learned how to serialze xml. Guess i never read the very bottom of the post saying there would be two of the same things. Now I have to figure out how to update the xml an easy way. or delete the file and just re create it..
    Living to Kill, Killing to Live

    Come learn more about Project NLIXD!

  4. #4
    ASPnix Administration Chris's Avatar
    Join Date
    October 11, 2008
    Location
    Denver, Colorado
    Posts
    802

    Default

    Me personally... I hate XML, so I do my best to avoid using it :).
    Christopher York
    ASPnix Administration Team
    www.aspnix.com

  5. #5
    Verified Community Member
    Join Date
    March 8, 2010
    Location
    Lakewood, CO
    Posts
    700

    Default

    What do you use to store things in when you dont want to use sql?
    Living to Kill, Killing to Live

    Come learn more about Project NLIXD!

  6. #6
    ASPnix Administration Chris's Avatar
    Join Date
    October 11, 2008
    Location
    Denver, Colorado
    Posts
    802

    Default

    I am storing items such as configs etc. I like INI files. However since .NET really molds well with XML, I use a library called NINI. Nini: An uncommonly powerful .NET configuration library to handle XML configuration files. I love it.

    Though if you are doing things such as PHP to C# API etc. XML is a really good way to get a common transport / medium between the 2.
    Christopher York
    ASPnix Administration Team
    www.aspnix.com

  7. #7
    Verified Community Member
    Join Date
    March 8, 2010
    Location
    Lakewood, CO
    Posts
    700

    Default

    Wow that library looks awesome. I'll have to look into that more when i have the chance to.
    Living to Kill, Killing to Live

    Come learn more about Project NLIXD!

Posting Permissions

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