Xml serialization of objects with circular references(michaelbaldry.blogspot.com)
submitted by
UKDev(5) 4 years ago
I always felt this was missing from XmlSerializer.
Then like magic, along came DataContracts, which can be used to do roughly the same thing, except you now have the added option of preserveObjectReferences as a parameter of the constructor.
This makes it rather difficult to do XSLT and XPath with the result. So unless you don't mind resolving every node in a query, I've written implementations of XPathNavigator and XmlDocument to transparently resolve these references for you.
|category: XML
|Views: 142
tags:
XML C# another
Everyones tags:
Your Tags: