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

  • Home
  • SEARCH
  • 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 3216378
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:17:14+00:00 2026-05-17T15:17:14+00:00

declare function Error:toString($this as javaObject) as xs:string external; the previous binds a return String()

  • 0
declare function Error:toString($this as javaObject) as xs:string external;

the previous binds a return String() to xs:string. is it possible to return a collection and bind it to an xQuery Sequence, say the following

declare function Error:toList($this as javaObject) as squenceType external;

so that it can be run through a flwr?

  • 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-17T15:17:15+00:00Added an answer on May 17, 2026 at 3:17 pm

    XQuery is a programming language for Xml World. W3C defines XQuery 1.0 Standard for the language.

    in that by default XQuery support basic data-types as (int, float, decimal, boolean types ) &
    complex datatypes as Node, element, Text, Comment etc.

    after that “external” keyword for function and variable are mainly for XQuery Engine implementors.

    external variable type declaration closely work with the context & custom implementation specific to engine.
    e.g)

    declare external variable $employeJavaObject as javaObject. 
                                   or
    declare function Error:toString($this as javaObject) as xs:string external;
    

    this means javaObject needs to be defined by XQuery engine and provides marshalling behaviour to it.

    I had worked with MarkLogic (4.x) , Zorba (1.4), Saxxon Xquery engine, So far i didn;t find any type of strict programming language related bindings.

    comming to your issue–
    if your collection is of type String then you can just sent them as sequence of string and get it back.

    if you want some kind of robust object mapping system, then you need to develop such framework on top standard XQuery engine wrappers as like

    “http://developer.marklogic.com/pubs/4.1/javadoc/com/marklogic/xcc/types/package-frame.html”

    or use some kind of XmlBeans Mapper like XmlBeans or Castor.

    ##— Editing after searching
    Looks liks XBird (code.google.com) has some interesting mapping scenrios
    http://code.google.com/p/xbird/wiki/XmlObjectBinding

    I have started looking into this. my expertise is primarily on marklogic.

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

Sidebar

Related Questions

Is it possible to call a function without first fully defining it? When attempting
Receiving Error message when performing Update Statement, but database is being updated. Error: You
I'm trying to instrument some code to catch and print error messages. Currently I'm
Private Function getFoo(ByVal _FileInfo As FileInfo) As foo() Dim provider As New ExcelStorage(GetType(foo)) provider.StartRow
I have working C++ code using swig which creates a struct, passes it to
I am learning PHP and SQL, and I'm trying to figure out how to
I have the following code (VB.NET) which is designed to determine if a given
From a user form: I am trying to insert the following data: 1) First
I asked a question earlier today about singletons, and I'm having some difficulties understanding
As an experiment i am trying to write the following program which allows me

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.