http://www.zorba-xquery.com/modules/xml ZC

Module Description
Before using any of the functions below please remember to import the module namespace:
import module namespace parse-xml = "http://www.zorba-xquery.com/modules/xml";

This module provides functions for reading XML files from string inputs. It allows reading of well-formed XML documents as well as well-formed external parsed entities, described by XML 1.0 Well-Formed Parsed Entities. The functions can also perform Schema and DTD validation of the input documents.

Author:

Nicolae Brinza

XQuery version and encoding for this module:

xquery version "1.0" encoding "utf-8";

Module Resources
Related Documentation

For more details please also see:

Namespaces
err http://www.w3.org/xqt-errors
parse-xml http://www.zorba-xquery.com/modules/xml
ver http://www.zorba-xquery.com/options/versioning
zerr http://www.zorba-xquery.com/errors
Function Summary
parse-xml-fragment ( $xml-string as xs:string?, $options as xs:string ) as node()* external
A function to parse XML files and fragments (i.
parse-xml-fragment ( $xml-string as xs:string?, $base-uri as xs:string, $options as xs:string ) as node()* external
A function to parse XML files and fragments.
Functions
parse-xml-fragment back to 'Function Summary'
declare function parse-xml:parse-xml-fragment (
            $xml-string as xs:string?, 
            $options as xs:string 
 ) as node()* external

A function to parse XML files and fragments (i.e. external general parsed entities). The functions takes two arguments: the first one is the string to be parsed and the second argument is a flags string (eEdDsSlLwWfF]*(;[\p{L}]*)?) selecting the options described below.

The convention for the flags is that a lower-case letter enables an option and the corresponding upper-case letter disables it; specifying both is an error; specifying neither leaves it implementation-defined whether the option is enabled or disabled. Specifying the same option twice is not an error, but specifying inconsistent options (for example "eE") is a dynamic error. The options are:

Parameters:
Returns:
Errors:

parse-xml-fragment back to 'Function Summary'
declare function parse-xml:parse-xml-fragment (
            $xml-string as xs:string?, 
            $base-uri as xs:string, 
            $options as xs:string 
 ) as node()* external

A function to parse XML files and fragments. The behavior is the same as the parse-xml-fragment with two arguments.

Parameters:
Returns:
Errors:

blog comments powered by Disqus