GetXMLDeclaration

Description

Gets the declaration of the XML document.

Syntax

pbdom_document_name.GetXMLDeclaration (ref string version, ref string encoding, ref string standalone)

Argument

Description

pbdom_document_name

The name of a PBDOM_DOCUMENT object

version

The value of version in the declaration of the XML document you want to obtain. If the version is null, no value will be obtained. If there is no declaration in the XML document, version will be obtained as null.

encoding

The value of encoding in the declaration of the XML document you want to obtain. If the encoding is null, no value will be obtained. If there is no declaration in the XML document, encoding will be obtained as null.

standalone

The value of standalone in the declaration of the XML document you want to obtain. If the standalone is null, no value will be obtained. If there is no declaration in the XML document, standalone will be obtained as null.


Return value

Boolean.

Returns true for success and false for failure.

Throws

EXCEPTION_PBDOM_OBJECT_INVALID_FOR_USE -- This PBDOM_OBJECT object is not associated with a derived PBDOM_OBJECT class object.

See also

SetXMLDeclaration