Get the top-class for a file: e.g. application/xml for image/svg+xml



Hello,

I currently try to figure out, how to get the top-class of a file. If I
have e.g. a DocBook XML and a SVG file, is there a function that returns
application/xml for both? I do not find a function in the docs, that
does what I need.

Or is there some other way to get this result?

Regards, Daniel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]