Is Serialization worth it?
-
I have an algorithm to parse a complex XML document using DOM via a recursive 'Navigate' function. Values are ultimately displayed on a form. New nddes are added to the document by supplying a ancestry list to a 'Create node' function, while nodes are updated by making use of Xpath. Sounds very good but I dont like it because of all the hardcoded nodenames. Now I have taken the corresponding XSD and laundered it through XSD.EXE to give me a set of classes that correspond to the XML document. I like the idea that I can de-serialize the XML document into this class, present the data on a form, make any changes and serialize it out to a new XML document. Is it really that simple? The first thing that troubles me is that I could potentially be rewriting the entire document just to correct a single spelling mistake...
Ger