ChimpusDupus 0 Light Poster

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 version="1.0" encoding="utf-8" ?> 
- <Users>
- <User Name="User 1">
  <Theme>Fire</Theme> 
  </User>
- <User Name="User 2">
  <Theme>Fire</Theme> 
  </User>
- <User Name="User 3">
  <Theme>Water</Theme> 
  </User>
- <User Name="User 4">
  <Theme>Fire</Theme> 
  </User>
- <User Name="">
  <Theme>Water</Theme> 
  </User>
  </Users>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.