OpenTag method

Applies to
TWPCustomXMLInterface

Declaration
function OpenTag(const Tag: string; const params: TStringList): Integer;

Description
This is the most important function when creating an XML file in code. It creates a open XML tag with certain parameters. If you want to create a closed XML tag use WriteTag instead.
The result value is a unique integer which can be used for CloseTagID. Open tags should be closed with CloseTag but the engine automatically closes tags, too: Example:
OpenTag('p');
OpenTag('b');
WriteText('Test');
CloseTag('p');
... creates the XML code:
>p<>b<Test>/b<>/p<

Category
Creation of XML data


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