An architecture for compressing and synthesizing XML documents