XML dialogs.

This code is used to (de)serialize basic dialogs to XML for storage
inside documents. While the XML -appears- to have some hierarchical
structure, that is only a fabrication, parsing and underlying toolkit
widget structure is sadly linear and flat.