Locators <-> XML Serialization
Locators are lists of paths
XML-document->Locators
- each element-node gets id in document-order (depth first, left to right traversal)
- each element-node is located by the entire path from root
- attributes are attached to element-nodes
- content is attached to leave-nodes
Locators->XML-document:
- clean up: discard locators $prefix which are followed by at leastone locator $prefix.$postfix
- generate tree(1) for all locators generate nested serialization(2) fill up with content and attributes
Mappings should be total, 1:1