Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. XML: Read, Write and Modify

XML: Read, Write and Modify

Scheduled Pinned Locked Moved XML / XSL
csharpvisual-studioxmlhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zaegra
    wrote on last edited by
    #1

    Hello, I have a group called GroupX and it contains several brands. Those brands contain products and those products have two values: their price and their product number. Now I want to store this in a XML file, and I know that I have to use System.XML but I just can't find out on how to store, read and modify this data using XML. I've searched the internet, but didn't find what I was looking for.. I am using Visual Basic with Visual Studio 2005. Please help me out, :) --Zaegra--

    D C 2 Replies Last reply
    0
    • Z Zaegra

      Hello, I have a group called GroupX and it contains several brands. Those brands contain products and those products have two values: their price and their product number. Now I want to store this in a XML file, and I know that I have to use System.XML but I just can't find out on how to store, read and modify this data using XML. I've searched the internet, but didn't find what I was looking for.. I am using Visual Basic with Visual Studio 2005. Please help me out, :) --Zaegra--

      D Offline
      D Offline
      DerekFL
      wrote on last edited by
      #2

      Is this in a database or do you want to create the xmlDocument in Visual Basic from a text file or something?

      1 Reply Last reply
      0
      • Z Zaegra

        Hello, I have a group called GroupX and it contains several brands. Those brands contain products and those products have two values: their price and their product number. Now I want to store this in a XML file, and I know that I have to use System.XML but I just can't find out on how to store, read and modify this data using XML. I've searched the internet, but didn't find what I was looking for.. I am using Visual Basic with Visual Studio 2005. Please help me out, :) --Zaegra--

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Zaegra wrote:

        I've searched the internet

        I find that hard to believe. There is a myriad of ways to store XML, the easiest is to use a stringbuilder to build your XML by hand, but that is more error prone than using XMLDocument or the XMLStreamWriter ( not sure what that is called ). XMLDocument is a standard DOM implimentation, it's how you would read/modify an XML document.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups