XML File - Write specific elements


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: XML File - Write specific elements

  1. #1
    Join Date
    Dec 2005
    Location
    South of Nowhere, Maine
    Posts
    309

    XML File - Write specific elements

    How do I update a specific element in an XML file?

    I can use the XMLPath classes to read the specific parts of the XML file. But I need to update those elements.

    Using the XMLTextWriter, I have to rewrite the entire document. Do I need to read in the document, make changes, then write it back?

    Or is there some other way to just update a specific section of an XML file?

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Dec 2005
    Location
    South of Nowhere, Maine
    Posts
    309
    Excellent! That is what I was looking for. Thanx!

Similar Threads

  1. Replies: 0
    Last Post: 03-01-2006, 02:48 PM
  2. Replies: 1
    Last Post: 02-14-2006, 08:04 AM
  3. File uploading / objFile.Write problem
    By Tomer Cagan in forum ASP.NET
    Replies: 1
    Last Post: 07-24-2001, 10:01 AM
  4. Problem Converting ADO Recordset to XML
    By CHRISTOS STAVRINOU in forum VB Classic
    Replies: 0
    Last Post: 11-16-2000, 05:58 PM
  5. Replies: 2
    Last Post: 03-24-2000, 02:05 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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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