I have given XML document and some node in it. This node is wrapped by my class and this mentioned class should be serialized and then deserialized (in some workflow). My problem reveals because my node implementation (which I have to use) could not be serialized. After deserializing I have to have some reference to serialized node (to be specific - to it's parent).
What I would like to achieve is to save path to my node to some unambiguous object, which could be serialized. Then this object (serialized path) must be unambiguous restored to base Node.
This behaviour places me to think about XPath. XPath object (it's command) can be serialized and can be used to get Node from document. But I don't know any way to save XPath to given Node in context of XML document.
Any help would be appreciated