Sven Groot said:Simply use the XmlNode.OwnerDocument property to get a reference to the document that a particular node belongs to.
I suppose I could do that, but then that would spaghetti my code up.
With my method, I can take an xml node from any document, and parse it into my variables. Then, I can generate the xml node from within the class that uses those variables, and pass that node to any xml document handler class for storage.
Thus, I can easily store this node in the main applications xml config file, as well as create mini import/exmport templates in xml format for people to share their configs with others.