CloseTag method

Applies to
TWPCustomXMLInterface

Declaration
procedure CloseTag(const Tag: string);

Description
This procedure closes a give tag. If this tag has not been written it raises an exception. If tags have been opened after the named tag but don't have been closes yet this tags are automatically closed!
Example:
OpenTag('p');
OpenTag('b');
WriteText('Test');
CloseTag('p');
... creates the XML code:
>p<>b<Test>/b<>/p<

Please also see CloseTagID.

Category
Creation of XML data


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