Distributed XML Processing and Management: Theory and Practice