The first line introduces the necessary line to indicate that it is an XML-file. This line is obligatory to be able to parse the file.
Line 2 declares the DTD that is used.
Line 3 and 4 declare the windows that are used in this application.
Line 5 opens the application tag with the required attributes.
Line 6 and 7 import the window1.xml and window2.xml files in the application.
Line 8 closes the application tag.
Line 1 opens the window tag. This window is the mainwindow as indicated by the mainwindow attribute. The layout of this window is the borderlayout. And the visible attribute says it is visible on startup.
Line 2 introduces a button with the text hello. It's position is at the top of the window.
Line 3 introduces a button at the bottom position.
Line 4 introduces a button at the left position.
Line 5 introduces a button at the right position.
Line 6 specifies a button with no position attribute. This means that the default center is used.
Line 7 closes the window tag.
The first line opens the window tag. It's not the mainwindow because the mainwindow attribute has the value false. It also is not visible at startup. The window has a horizontal layout with a begin layoutalign (the default, it is not specified in the file it self).
Line 2 to 6 introduces 5 buttons which are next to each other with the first button at the left.
Line 7 closes the window tag.