Marc said:
I've only just realised that I don't need XmlDocument at all. My plan is
that I load the XML into a DataSet, manipulate the data in a DataSet,
and then write the DataSet out in XML when I finish.
You can manipulate the queried result of the Linq-2-XML query, do CRUD
operations against the result, and write the result out as a XML file
all by using Linq-2-XML. You don't need a dataset to do anything.
Two advantages for me
1. I can bind the dataset tables to datagridviews, and
You can do that with Linq-2-XML, query the XML using Linq-2-XML, bind
the result to a control, and you don't need a dataset period.
2. I'm much happier dealing with relational data than navigating XML.
By using Linq-2-XML, one can treat the XML as relational data.
It all seems to be working, so if there is a flaw in my plan, please let
me know.
Linq is the new boy on the block and is very powerful -- very powerful
indeed. Dataset is old technology.