Click here to Skip to main content
15,037,009 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
using this XmlDocument to ouput a xml file with some parameters like velocity acceleration direction etc....

i using the create textnode and create element function but i found it was troublesome if i need to output more parameters as i need to appendchild the textnode n element ....

anywhey to create the node and at the same time set the content it holds??

for example

node(nodename)->value(value it holds);
Posted

1 solution

Have a look at the XmlSerializer Class[^].
It could help you writing and reading XML files: it automatically serialize/deserialize all the public fields and properties of any class or struct using reflection to iterate on them and create the pairs name/value.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900