Here you see the XML generated by the sample class. As you can see the XML generated all the element text correctly. The real power of XMLWorks comes from the ability to use native Delphi (or C++) classes to work with XML. Instead of using INI files, or hard to read proprietary formats for storing settings you can now use XML files. Since XML files are hierarchical by nature they make excellent storage mediums for configuration settings.

<?XML version = "1.0" ?>
<!DOCTYPE Author-list [
  <!ELEMENT Author-list (Author)* >
  <!ELEMENT Author (address,au_fname,au_id,au_lname,city,phone,
         TestInt,TestInt64,TestVariant) >
  <!ELEMENT address (#PCDATA)>
  <!ELEMENT au_fname (#PCDATA)>
  <!ELEMENT au_id (#PCDATA)>
  <!ELEMENT au_lname (#PCDATA)>
  <!ELEMENT city (#PCDATA)>
  <!ELEMENT phone (#PCDATA)>
  <!ELEMENT postalcode (#PCDATA)>
  <!ELEMENT state (#PCDATA)>
  <!ELEMENT TestChar (#PCDATA)>
  <!ELEMENT TestEnum (#PCDATA)>
  <!ELEMENT TestFloat (#PCDATA)>
  <!ELEMENT TestInt (#PCDATA)>
  <!ELEMENT TestInt64 (#PCDATA)>
  <!ELEMENT TestVariant (#PCDATA)>
    <address>9919 Hornpipe</address>