WriteDocType method

Official Content
This documentation is valid for:

Writes the DocType declaration of the XML document. 

Syntax

&DataType.WriteDocType(DocName, [SubSet ] )

Where:
DocName
    Name of the DocType

 SubSet 
    Indicates the subset to be included in the declaration

Scope

Extended data types: XMLWriter Data Type
Generators: .NET.NET Framework, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

Description

Writes the DocType declaration of the XML document. If a Subset is included, it is entered between brackets at the end of the declaration.

Samples

WriteDocType(‘book’,‘!ENTITY ge “entity”’)

Generates the following:

<!DOCTYPE book [ !ENTITY ge “entity” ] >

See Also

XMLWriter Data Type
WriteDocTypePublic method
WriteDocTypeSystem method