initial implementation for xml type