Class TWPCustomXMLTree
Hierarchy
System.TObject | System.Classes.TPersistent | System.Classes.TComponent | WPXMLint.TWPCustomXMLInterface | TWPCustomXMLTree
Subclasses
WPLngCtr.TWPLanguageControl | WPXMLint.TWPXMLTree
Description
This class is based on TWPCustomXMLInterface. I allocates an intern tree to hold all the data of the XML file. It was designed to hold also XML alike code such as HTML. It supports methods to find and replaces XML nodes, to save a node and to delete nodes. It even supports search in the text and xml params. The unit WPXmlEditor contains a valuable editor which manipulates the data stored in the XML tree.Properties
Property AllowHTMLStyleText : Boolean
Property AllowTextOutsideOfTags : Boolean
Property AutoCreateClosedTags : Boolean
Property DontAllowMultTagsOnFirstLevel : Boolean
Methods
Procedure AppendFromFile(Filename:string)
Procedure AppendFromStream(Stream:TStream)
Procedure AppendFromString(s:string)
Function AsANSIString(Path:string) : string
Function AsCommaText(prefixfields:Boolean; PrefixSeperator:Char; Path:string) : string
Procedure Assign(Source:TPersistent)
Function Count : Integer
CreateEx(aOwner:TComponent; aItemClass:TWPXMLLevelClass)
Function DeleteTag(TagPathName:string) : Boolean
Procedure DoReadComment(s:string)
Procedure DoReadTag(TagName:string; Params:TStringList; IsClosed:Boolean)
Function Find(TagPathName:string) : TWPXMLOneLevel
Function FindParamNameValue(TagPathName:string; ParamName:string; ParamValue:string) : TWPXMLOneLevel
Function FindParName(TagPathName:string; ParamName:string) : TWPXMLOneLevel
Function GetFirst : TWPXMLOneLevel
Procedure GetList(List:TStrings)
Procedure InternReadCDATA(p:PAnsiChar; l:Integer)
Function IsEmpty : Boolean
Procedure LoadFromString(s:AnsiString)
Function SaveForUndo(why:string; dontoverwritesamestate:Boolean) : Boolean
Function TagByName(TagPathName:string) : TWPXMLOneLevel
Function Undo(why:string) : Boolean
Events
OnBeginUpdate : Boolean= Boolean
This event will be called by the method BeginUpdate by the class TWPXMLOneLevel
OnEndUpdate : TNotifyEvent= procedure (Sender : TObject) of Object
This event will be called by the method EndUpdate by the class TWPXMLOneLevel
Used or referenced by
-Function TWPXMLOneLevel.CopyTree(NewParent:TWPCustomXMLTree) : TWPXMLOneLevel |