*.QML file - web address

22 views
Skip to first unread message

juanb...@gmail.com

unread,
Jun 13, 2022, 2:29:39 AM6/13/22
to QGIS Australia User Group
Hello Everyone,

I'm working with *.QML files, saving the styles of some layers so I can reuse them later on other layers.  While I'm on it, I'm also trying to edit a *.QML file in Notepad, testing if I can change some properties in the code within the file.

At the top of any *.QML file made by QGIS I'm getting the line:

<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>

I tried to visit that web address to see if there is reference to the *.QML file language, but it's taking me to a "Page not found" error.

Does anybody know where I can find reference to the specifications on how to build/edit a *.QML file?

By the way, I'm using QGIS 3.22 (stable version at the moment). 

Cheers
Juan

Phil Wyatt

unread,
Jun 13, 2022, 2:56:33 AM6/13/22
to australian-qg...@googlegroups.com

Hi Juan,

 

Looks like the issue has been around for a good while.

 

https://github.com/qgis/QGIS/issues/14340

 

You might get some more useful information at the github issue ticket.

 

Cheers - Phil

--
You received this message because you are subscribed to the Google Groups "QGIS Australia User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to australian-qgis-use...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/australian-qgis-user-group/23dc364a-733f-48c2-88ae-9a44445a4a39n%40googlegroups.com.

Brad Hards

unread,
Jun 13, 2022, 3:30:42 AM6/13/22
to australian-qg...@googlegroups.com
> Does anybody know where I can find reference to the specifications on how to
> build/edit a *.QML file?

Might be useful:

https://github.com/qgis/QGIS/blob/master/qgis.dtd

(or if you want to point a validator at a real file, try:
https://raw.githubusercontent.com/qgis/QGIS/master/qgis.dtd)

Brad


juanb...@gmail.com

unread,
Jun 13, 2022, 9:11:31 PM6/13/22
to QGIS Australia User Group
Thanks for your answers guys - I had a look at the links. I can see now what the updated DTD web address is and its contents. 

I've been Googling this up but it looks like there is very little documentation about the content of *.qml files.

This GIS-StackExchange answer gave me some insight:

Someone was asking for the same documentation but the first and only answer (is he the developer for this QGIS component?) is along the lines of "just have a look at the file and interpret on your own what the components do". 

I was very lucky to work with a GIS specialist in the past who was a master at editing *.qml files by hand and only selecting some components (deleted all the others) to get them to do what he wanted.  It was very easy to apply complex styles with his templates.  But the work he did was for QGIS 2.14, and the templates he made don't work anymore in QGIS 3.22.  So I'm trying to edit/redo the work and it's not simple. 

If anyone ever finds any documentation about the components of *.QML files, I'd really appreciate it.

Thanks again!

Juan
Reply all
Reply to author
Forward
0 new messages