Gets the contents of the XML service file.
The buffer returned in
contents should not be modified or freed, and is guaranteed to be valid as long as
this is referenced. If
data_offset is not null, it is set to
the offset where the <type_data> element can be found. If some error occurs,
contents is set to
location to receive the pointer to the file contents.
pointer to receive the offset of the type data.