Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 490541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:55:11+00:00 2026-05-13T01:55:11+00:00

hi I have a bit lame question, can’t find the answer though. what happens

  • 0

hi I have a bit lame question, can’t find the answer though.

what happens if I leave the constructor brackets void?

e.g.

{data(doc("somedata.xml")//node[0])}

I mean, I know what happens, but what is it considered as when being parsed?

is it like ?

{
    for $i in "0"
    return
    data(doc("somedata.xml")//node[0])
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T01:55:11+00:00Added an answer on May 13, 2026 at 1:55 am

    It is a common misconception that any XQuery is a FLWOR expression. This misconception comes when people approach XQuery from a SQL perspective, treating it as a SELECT.

    This is in fact not the case; a FLWOR expression is in many ways just another expression. It may be that a FLWOR expression is executed as a SQL expression, but this doesn’t have to be the case.

    XQuery can be viewed as a functional programming language (like Haskell) that happens to have some declarative constructs (like where and order by).

    The expression 1+2 is just an XQuery expression that adds the numbers 1 and 2, there does not need to be an implicit FLWOR expression around it.

    If you wanted to consider XQuery in a fully tuple-based algebra then you could consider the input to be a single empty tuple. By this I mean the following.

    Look at this query:

    for $x in ...
    for $y in ...
    where $x/@name=$y/@name
    return $x
    

    If you were considering this in a tuple based algebra, the input to the for expression would be a stream of tuples defining $x and $y. It is obvious how this could relate to a database query. This corresponds to a table with two columns $x and $y and a row for each pair that have equal names.

    You could consider the following query

    //foo
    

    as operating on a single tuple with no values. This would be a little bit like a FLWOR expression with no fors or lets (just a return expression, if that were allowed). In relational land this would be a table with no columns and one row. However this is just a logical abstraction, and most (if not all) XQuery implementations represent this as just an expression.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a little bit lame question, but it's time i have this finally
I have this bit of SQL that always returns an error, though I can't
This is going to be a bit lame question. I have the following code:
I have a question regarding how initialization vector works on cryptography. I have bit
I have a bit of a theoretical question, however it is a problem I
I have a bit of code that fits theoretical prediction to experimental data, and
I have a bit of a problem that I can't seem to code my
I have a bit of a monster update query that I can't quite fit
I have a bit of a question that has been bothering me for a
I have a few columns in my database schema that have bit data types

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.