Implements the XMLResource type from the XML:DB API.