Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The LOAD command must be executed successfully before using the SET or QUERY commands.

Syntax:

Command

Keyword

Value

Developer notes

LOAD

FILE

value

Required. The path and file name for the XML document whose contents are to be queried.

VALIDATE

*NO

Default. The XML document is parsed WITHOUT validating it against any DTD or schema it may reference.  In this mode, the XML document is required to be well-formed, but conformance to the DTD or schema is NOT checked. (For many typical applications of the XMLQueryService, validation is an unnecessary overhead.)

*YES

Use validating parser.

NAMESPACEAWAREE

*NO

Default. The XML document is parsed in a non-namespace-aware mode. For most cases, this simplifies the form of the XPath expressions necessary to perform a given query.

*YES

Use namespace aware parser.

Example

     LOAD FILE(/folder/file.xml)