What is a QML file?
A file with .qml extesion is a XML file that stores layer styling information for QGIS layers. QGIS is an open-source cross-platform GIS application used to display geospatial data with the capability of organizing data in the form of layers. QML files contain information that is used by the QGIS to render feature geometries including symbol definitions, sizes and rotations, labelling, opacity, blend mode, and much more. Unlike the QLR files, QML files contains all the styling information in itself. QML files can be opened in any text editor such as Notepad++.
QML File Format
QLR, similar to QGS and QLR, is an XML file that contains styling information for the layers.
The figure below shows the top level tags of a QML file (with only renderer_v2 and its symbol tag expanded).