![]() |
Unit
WPXMLint
Declaration
TWPXMLTree = class(TWPCustomXMLTree)
Hierarchy
TComponent <--TWPCustomXMLInterface <--TWPCustomXMLTree <--TWPXMLTree
Subclasses
None
Description
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.
This a screenshot of the XML editor which is mainly based on the TWPXMLTree class:
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.
Copyright (C) by WP |