views:

335

answers:

3

As stated in the title, i'm looking for an XML schema (XSD-file) for the Glade markup language?

Wikipedia states that Glade is a schema based markup language (list of schemas at wikipedia). I tried to search the web, wikipedia and the glade website,but i couldn't find an XSD for Glade.

Thx, Juve

+1  A: 

http://svn.async.com.br/cgi-bin/viewvc.cgi/libglade/glade-2.0.dtd?view=markup

(The main version @ http://glade.gnome.org/glade-2.0.dtd doesn't seem to be working)

Ben
A: 

Thx, this is a first start. I assume there is no document that is more explicit that this DTD? This DTD only specyfies what (global) tags can be used. Especially for the tag <widget> i would like a have constraints on the attribute "class" (as supported by XSD). The XSD should cover that there are only certain values for the <widgets'> "class" attribute, like GtKTreeView, etc.

Juve
A: 

There's nothing that will explicitly tie down the glade to an particular schema since it's all run-time based.

You may find the .defs files generated by PyGTK useful. If you really need an XSD file, you should be able to create one from these files.

This looks like the main one, there's more in that directory.

eduffy