Shared XML related functionality for fog