Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

doc-available

doc-available

The doc-available function in XQuery checks whether a document identified by the given URI is available and can be retrieved without error.

Syntax

fn:doc-available(uri)
The following table describes the argument for this command:
Argument
Required/Optional
Description
uri
Required
The URI identifying the XML document to check.

Return Value

  • Returns
    true
    if the document is available and can be successfully retrieved.
  • Returns
    false
    if the document is not available, cannot be retrieved, or an error occurs during retrieval.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:doc-available("http://example.com/sample.xml")
true
fn:doc-available("nonexistent.xml")
false
fn:doc-available("")
false

Additional information

  • Useful to safely check for document existence before attempting to retrieve it with
    doc()
    .
  • The function does not raise errors. It returns a boolean indicating availability.
  • Behavior may depend on the underlying XQuery processor and access rights.

0 COMMENTS

We’d like to hear from you!