DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Writing and Reading from and XML Fragment File

  1. #1
    Join Date
    Dec 2006

    Exclamation Writing and Reading from and XML Fragment File

    I am creating a kind of customer database. This program keeps a SQL database of customers, along with a discounts table. I needed to have orders for each customer, so I decided to go to XML. I have an XML file called orders.xml in a subdirectory of data(data\orders.xml). Orders can be added at later times, so I need the program to be able to find the <customer> node, and read it's attribute "name". If the element's name attribute equals the currentCustomer variable(string), then I want it to add the order as an empty child element to that customer. Else, create the new customer element w/name attr. and add the order. My problem is, determining if that customer exists, and reading the customer's current orders. The current orders are displayed in a listbox called lstCurrent, and would like to have it load in the Form_Load event. I realize this is more than likely alot of work, or a simple code that I don't know. Any help on this would be greatly appreciated. Thankyou in advance for those that attempt such a feat.

  2. #2
    Join Date
    Aug 2004
    Orange, California

Similar Threads

  1. i'm a complete noob with XML...
    By Chrisms in forum XML
    Replies: 1
    Last Post: 12-03-2006, 01:17 AM
  2. Writing and Reading a XML Stream
    By Bryan in forum XML
    Replies: 2
    Last Post: 05-08-2006, 05:58 PM
  3. Reading & Writing XML from Datasets
    By jrothlander in forum .NET
    Replies: 1
    Last Post: 07-08-2005, 02:02 PM
  4. Reading an XML Document into a Dataset
    By srr in forum ASP.NET
    Replies: 2
    Last Post: 04-27-2003, 12:42 PM
  5. Why use XML?
    By Brian in forum XML
    Replies: 5
    Last Post: 01-10-2003, 09:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center