I would recommend trying the Xml Serialization mechanism.
(not quite like Castor, something more like JAXB, or what JAXB wuold like to
be).
It works for most of the basic cases and you may find it sufficient.
In fact though you don't explicitly work with XML when using this mechanism.
In your code, you work with objects. You read and save the objects, and the
XML is slurped in, or emitted, auto-magically. In your code you would never
touch the DOM or refer to an XmlNode etc.
-Dino
"Steve B. [Labo.Net]" <n.**********************@supinfo.com> wrote in
message news:%2***************@tk2msftngp13.phx.gbl...
You can also use serialisation ...
Create a class using same property than your xml file, and use
serialization / deserialization to convert object->xml et xml->object.
Unfortunetally, all xml file cannot be used using this technic
Steve
"Ruslan" <ru*********@hotmail.com> a écrit dans le message de
news:ug**************@TK2MSFTNGP11.phx.gbl... I must work with the xml files. Load data from xml, change it, save it.
What is the best idea? To use ADO.NET, I mean to load data from xml to
DataSet, or create classes and work with these classes (something common with
"Castor").
Thanks,
Ruslan