1.3 XML-Driven Programming

GUI decription

Example: SwiXML ( http://www.swixml.org)

<frame size="400,100" title="Hello World" >
  <panel constraints="BorderLayout.CENTER">
     <label text="Hello World!"/>
     <textfield columns="20" Text="    "/>
     <button Text="OK" Action="submit"/>
  </panel>
</frame>

PIC

Process description

Example: Ant ( http://ant.apache.org/)

<?xml version="1.0"?>
<project  basedir=".">
  <mkdir dir="my.dir" />
  <move todir="my.dir" >
        <fileset file="build.xml" />
  </move>
  <echo message="Done!"/>
</project>