XML and Localisation Tool
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.
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.
Very useful and powerful since based on the XML support class is the localization interface TWPLanguageControl. Only one instance is allowed in a project. It makes it possible to store, load and save language information. Once it is created on the form the WPTools forms can localize the strings from information stored in this component. Please check out the demo project "Demos/Tasks/Localization" to learn how to use this control to localize WPTools' dialogs at runtime.