WriteDocTypePublic Method

Official Content
This documentation is valid for:

Scope

Extended Data Types: XmlWriter
Languages: .NET, Java, Ruby, Visual Basic, Visual FoxPro

Purpose

Writes the DOCTYPE declaration of the XML document with a PUBLIC type declaration.

Syntax

&DataType.WriteDocTypePublic(DocName, PubId, uri [ ,SubSet ] )

Where:
DocName
   Name of DOCTYPE

PubId
   Public type declaration identification

uri
   Public type declaration uri

SubSet
   Indicates the subset to be included in the declaration

Description

Writes the DOCTYPE declaration of the XML document with a PUBLIC type declaration. If a Subset is included, it is entered between brackets at the end of the declaration.

Example

WriteDocTypePublic(‘book,‘Id’, ‘http://www.ser.com/dtd’)

Generates the following: !DOCTYPE book PUBLIC “Id” “http://www.ser.com/dtd”.

See Also

Xmlwriter Data Type
WriteDocType
WriteDocTypeSystem