option_strings: general format

This section specifies the general format, syntax and processing of option string parameters in XML Services. Actions of individual options are described in the functions that reference them.Any function that has an option_string parameter accepts the union of all options, and ignores any options that do not apply to that particular function.

For example, forxmlj does not have an XML document parameter, but it still accepts an option_string containing the xmlerror option (which specifies actions for invalid XML operands).This “union options” approach lets you use a single option_string variable for all XML Services functions.

Syntax

option_string::= basic_string_expression

Description

Table 2-2: Option string values

Option name

Option value

Function

binary

hex | base64

forxmlj and for xml clause

columnstyle

element | attribute

forxmlj and for xml clause

dtdvalidate

yes | no

xmlparse

format

yes | no

forxmlj and for xml clause

header

yes | no

forxmlj and for xml clause

incremental

yes | no

for xmlj clause

nullstyle

attribute | omit

forxmlj and for xml clause

nullclause

null | empty

forsqlcreatej

forsqlscriptj

prefix

SQL name (C)

forxmlj and for xml clause

root

yes | no

forxmlj and for xml clause

rowname

SQL name (row)

forxmlj and for xml clause

schemaloc

quoted string with a URL

forxmlj and for xml clause

statement

yes | no

for xmlj and forxml clause

tablename

SQL name (resultset)

forxmlj and for xml clause

targetns

quoted string with a URL

forxmlj and for xml clause

xmlerror

exception | null | message

all functions with XML operands

NoteThe defaults of options that specify keywords are underlined. The defaults of options that specify SQL names are parenthesized. The defaults of options that specify string values are the empty string, or a single-space character.