Help with Reading/Editing/Writing XML data in .NET

Please support our XML, XSLT and XPATH advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2006
Posts: 47
Reputation: ChimpusDupus is an unknown quantity at this point 
Solved Threads: 0
ChimpusDupus ChimpusDupus is offline Offline
Light Poster

Help with Reading/Editing/Writing XML data in .NET

 
0
  #1
Jun 16th, 2008
hi,

I feel retarded working with XML right now because I have no clue whatsoever how to do anything with.

I really just need a simple, straigtforward description of how to read, edit, and write XML files that hold data, everything I've found on the internet and such hasn't given me what I need.

What I need it for is a project where I have a simple XML file (below) and I need to read data from the Theme element for the User element whose name matches a given name, which I can do, but I also want to be able to change that data and add entries.

Here's my XML File:

XML, XSLT and XPATH Syntax (Toggle Plain Text)
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. - <Users>
  3. - <User Name="User 1">
  4. <Theme>Fire</Theme>
  5. </User>
  6. - <User Name="User 2">
  7. <Theme>Fire</Theme>
  8. </User>
  9. - <User Name="User 3">
  10. <Theme>Water</Theme>
  11. </User>
  12. - <User Name="User 4">
  13. <Theme>Fire</Theme>
  14. </User>
  15. - <User Name="">
  16. <Theme>Water</Theme>
  17. </User>
  18. </Users>
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the XML, XSLT and XPATH Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC