There are many ways to do it. You can use XmlTextReader, XmlNodeReader for reading the XML.For,writing ,you can use XmlTextWriter and XmlNodeWriter classes.There is also XmlDocument class,you can use for reading and writing purpose. Check it[^]
Cheers!! Brij