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

doc

The doc function in XQuery retrieves a single XML document node identified by a URI. It is commonly used to load an XML document from a given URI into an XQuery expression for querying.

Syntax

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

Return Value

  • Returns the document node of the XML document identified by the URI.
  • Returns an empty sequence if no document is found at the specified URI.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:doc("http://example.com/sample.xml")
Document node of the specified XML
fn:doc("")
Empty sequence
fn:doc("nonexistent.xml")
Empty sequence

Additional information

  • The behavior depends on the XQuery processor and the availability of the URI.
  • The URI is often resolved relative to the base URI of the query.
  • The function retrieves exactly one document; multiple documents are not returned.

0 COMMENTS

We’d like to hear from you!