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. C#
  4. MDI data storage in XML

MDI data storage in XML

Scheduled Pinned Locked Moved C#
helpxml
3 Posts 2 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.
  • B Offline
    B Offline
    bharath_kraj
    wrote on last edited by
    #1

    Hello Everyone, I have developed a simple MDI forms application and am now stuck with a problem. I want to store the data of each childform in a seperate tag of an XML file. I have written a xml_write() method in the childform.cs but am not able to successfully write for each MDI childform. Can I get some help!! KR

    E 1 Reply Last reply
    0
    • B bharath_kraj

      Hello Everyone, I have developed a simple MDI forms application and am now stuck with a problem. I want to store the data of each childform in a seperate tag of an XML file. I have written a xml_write() method in the childform.cs but am not able to successfully write for each MDI childform. Can I get some help!! KR

      E Offline
      E Offline
      exhaulted
      wrote on last edited by
      #2

      You'll have to be more specific, what happens when your write function is called? are any exceptions thrown? Maybe show some code?? If you don't give details then no one can help you:-D Kev

      B 1 Reply Last reply
      0
      • E exhaulted

        You'll have to be more specific, what happens when your write function is called? are any exceptions thrown? Maybe show some code?? If you don't give details then no one can help you:-D Kev

        B Offline
        B Offline
        bharath_kraj
        wrote on last edited by
        #3

        I have attached the code of the method I have written in the ChildForm.cs file but this is not the right code coz I am not able to append nodes to the XML file using this. My problem - I want to add a node with some text to the XML file whenever I open a new child window using normal MDI property. private void Xml_Creation(int count) { XmlWrt = new XmlTextWriter("XMLSample.xml",null); XmlWrt.Formatting=System.Xml.Formatting.Indented; XmlWrt.WriteStartDocument(); //start the first element. XmlWrt.WriteStartElement("FORMS"); //create our first customer element. //this is a child element of the customers element. XmlWrt.WriteStartElement("Form"); XmlWrt.WriteElementString("FormNumber", count.ToString()); XmlWrt.WriteEndElement(); //XmlWrt.WriteEndDocument(); //XmlWrt.Flush(); XmlWrt.Close(); } Cheers KR

        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