XQuery – If Then Else
XQuery provides a very useful if-then-else construct to check the validity of the input values passed. Given below is the syntax of the if-then-else construct. Syntax if (condition) then ...…
XQuery provides a very useful if-then-else construct to check the validity of the input values passed. Given below is the syntax of the if-then-else construct. Syntax if (condition) then ...…
Following is the list of commonly used regular expression functions provided by XQuery Sr.NoName & Description1matches Function Returns true if the input matches with the provided regular expression.2replace Function Replaces…
The tokenize function returns a sequence of items matching the regular expression. Syntax tokenize($input, $regex) Input Parameters $input − input string.$regex − regular expression. Example XQuery Expression let $input := 'Chapter 1 ... Chapter…
The replace function replaces the matched input string with a given string. Syntax replace($input, $regex, $string) Input Parameters $input − input string.$regex − regular expression.$string - string to replace original string. Example XQuery Expression let…
The matches function returns true if the input matches with the provided regular expression; otherwise false. Syntax matches($input, $regex) Input Parameters $input − input string.$regex − regular expression. Example XQuery Expression let $input :=…
A Proxy server is an intermediary server between the client and the internet. Proxy servers offer the following basic functionalities − Firewall and network data filteringNetwork connection sharingData caching Using…
Aggregations operations process data records and return computed results. Aggregation operations group values from multiple documents together and can perform a variety of operations on the grouped data to return…
The following table lists the commonly used date functions provided by XQuery. Sr.NoName & Description1current-date Function Returns the current date.2current-time Function Returns the current time.3current-dateTime Function Returns both the current…
Using HttpClient, you can connect to a website which needed username and password. This chapter explains, how to execute a client request against a site that asks for username and…
The current-dateTime function is used to return the current date and time. Syntax current-dateTime() Example XQuery Expression let $datetime := current-dateTime() return <results> <datetime>{$datetime}</datetime> </results> Output <results> <datetime>2014-10-27T14:55:58.621+05:30</datetime>result </results> Here T separates…