I am currently using the DataSet.WriteXml
method to rely on the solidness of C#'s classes in order to write files.
My problem is that I would like to write the less redundant information possible. By default, XML nodes are written like the following:
<parameter>VALUE</parameter>
But I would rather prefer to write:
<parameter="VALUE" />
Until now, using the MappingType.Attribute
I have just been able to format the output like this:
<Table1 parameter="VALUE" />
But, do you have any trick to get rid of "Table1", here ?
EDIT: Or do you have an other class to recommend me to achieve this? I mean, writing my set of keys/values in a proper file...