TWPCustomXMLInterface Component
Properties Methods Events

Unit
WPXMLint

Declaration
TWPCustomXMLInterface = class(TComponent)

Hierarchy
TComponent <--TWPCustomXMLInterface

Direct subclasses
TWPCustomXMLTree TWPXMLInterface

Description


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. If you need an XML tree stored in memory use the component TWPXMLTree.

Introduced Properties
AsString 
DataSize 
 Depth 
Encoding 
HTMLMode 
 MemoryStream 
ObjectStack 
OnLoaded 
 Stack 
StyleSheets 
UseOnlyXMLEntities 
 WorkStringList 
WriteIndented 
XMLData 

Introduced Methods
Clear 
CloseAllTags 
CloseTag 
CloseTagID 
CurrentTag 
LoadFromFile 
LoadFromStream 
MakeStyleParam 
OpenTag 
SaveToFile 
SaveToStream 
Write 
Writeln 
WriteNative 
WriteStylesheets 
WriteTag 

Introduced Events
OnComment 
OnEndTag 
OnError 
OnStartTag 
OnText 
OnWriteTextEnd 
OnWriteTextStart 


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