A script-enabled browser is required for this page to function properly.

XML Prolog Value property

The XML Prolog Value property specifies the XML prolog that should appear at the beginning of all well-formed XML output. The XML Prolog Type property specifies whether the prolog is provided as text or within a file generated by Oracle Reports. The XML prolog should include an XML declaration but can also include comments, processing instructions (such as a stylesheet [XSL]), and a  document type declaration (DTD).

Applies to

Report

Values

Prolog text typed in the Prolog Value dialog box, or a file name that contains the XML prolog.

Default

<?xml version="1.0"?>

Required/Optional

An XML declaration is required for well-formed XML output. However, any alpha-numeric character in this property field will allow raw XML output to be generated in Reports Builder.

Syntax examples

XML Declaration:

<?xml version="1.0" encoding="UTF-8"?>

Comments:

<!-- this is how you do comments in XML -->

Processing instruction (PI) through client/server:

<?xml:stylesheet type="text/xsl" href="emp.xsl" ?>

Processing instruction (PI) through the Web:

<?xml:stylesheet type="text/xsl" 
href="http://[hostname]/[virtual_path]/emp.xsl" ?>

Document Type Declaration (DTD):

<!DOCTYPE EMP_TABULAR
[
<!ELEMENT EMP_TABULAR (EMP_ITEM)*>
<!ELEMENT EMP_ITEM (EMPNO)>
<!ELEMENT EMPNO (#PCDATA)>
]>

Example

The following is an example of prolog text which contains (in order) an XML declaration, a comment, a processing instruction (PI), and a document type declaration (DTD):

<?xml version="1.0" encoding="UTF-8"?>
<!-- This is how you make comments in XML -->
<?xml:stylesheet type="text/xsl" href="emp.xsl" ?>
<!DOCTYPE EMP_TABULAR   
[
<!ELEMENT EMP_TABULAR (EMP_ITEM)*>
<!ELEMENT EMP_ITEM (EMPNO)>
<!ELEMENT EMPNO (#PCDATA)>
]>

See also

REPORTS_UTF8_XMLOUTPUT environment variable