XML Support

TWPXMLInterface

This class implements a XML support which triggers events to let *you* load and save XML data. The developer is only responsible to store the XML data while the component does the other part: parsing, translation of entities, conversion of parameter to stringlists, maintaining a read-stack at load time, automatic creation of missing tags at read time, automatic closing of tags at write time.This class was created to provide an easy to use XML interface and it does not yet support unicode and will not support DOM and other entities than the predefined XML entities + common HTML entities. Since it can be configured to also allow non standard XML input and output.

TWPXMLTree

This class implements a XML support class which holds the XML data in memory. It makes it possible to access each tag through its name or path and works similar to the TRegistry but is much easier to use.

To load and save XML data use the methods: LoadFromStream, AppendFromFile etc.To locate a XML node use Find which expects as path name, this is the full name of the XML tag, for example "LOC/EN/STRINGS/ERROR1".Other methods are available through the XML nodes (TWPXMLOneLevel), for example AddTagValue or Find.Please check out the TWPXMLPropertyEditor. It is used as property editor for this class and is also a good example how to use the properties and methods of the XML tree and xml-nodes.