TWPCustomXMLTree Object
Properties Methods

Unit
WPXMLint

Declaration
TWPCustomXMLTree = class(TWPCustomXMLInterface)

Hierarchy
TComponent <--TWPCustomXMLInterface <--TWPCustomXMLTree

Direct subclasses
TWPLanguageControl TWPXMLTree

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.

Introduced Properties
AllowTextOutsideOfTags 
AutoCreateClosedTags 
DontAllowMultTagsOnFirstLevel 
DontSaveEmptyTags 
Modified 
 Tree 

Introduced Methods
AppendFromFile 
AppendFromStream 
Assign 
Clear 
DoWriteStart 
Find 
GetList 
TagByName 
ValueOf 


Copyright (C) by WPCUBED GmbH - Munich
http://www.wpcubed.com