Implements the XMLResource and BinaryResource interfaces from the XML:DB API.