Release 10.1A: OpenEdge Development:
Progress 4GL Reference

> ## WRITE-EXTERNAL-DTD( ) method

> Adds an external Document Type Definition (DTD) reference to an XML document represented by a SAX-writer object.

> Return type: LOGICAL

> Applies to: SAX-writer object handle

> Syntax
>     WRITE-EXTERNAL-DTD( name, systemID [ , publicID ] )

> ``name``

> A LONGCHAR expression evaluating to the fully qualified or unqualified name of the XML document root node.

> ``systemID``

> A LONGCHAR expression evaluating to the system ID of the DTD.

> ``publicID``

> A LONGCHAR expression evaluating to the public ID of the DTD.

> Call this method to add an external DTD reference to the prolog of the XML document.

> You can only call this method before the first call of START-ELEMENT. That is, only call this method when the WRITE-STATUS is SAX-WRITE-BEGIN. After the call, the status remains SAX-WRITE-BEGIN.

> If the STRICT attribute is TRUE, and you call this method after you create the root element (or when the CREATE-FRAGMENT attribute is TRUE), then the method fails.

> The value of `name` must match the value in the root node. If the STRICT attribute is TRUE and the two values do not match, then the method fails and generates an error.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095