INITIALIZE-DOCUMENT-TYPE( ) method
Creates a new XML document, initializes the document based on the referenced DTD, and creates its root node.
Return type: LOGICAL
Applies to: X-document object handle
namespace-uri
root-node-name
A character expression representing the name of the root node as defined in the XML document. If you are using namespaces and you want to associate a prefix with the namespace, you must qualify this node name with thenamespace-uri
and a colon character prefix (for example,namespace-uri:root-node-name
). You must explicitly set the xmlns attribute on the root node.public-id
system-id
The following example initializes an X-DOCUMENT with a DTD reference and adds the proper namespace declaration, if the namespace URI is not empty:
OpenEdge Release 10.2B
|