Re: [XQuery] How to Convert from JSON Message to XML Message with XQuery
You can use an example distributed with Sausalito (28msec.com). Install the coresdk and execute:
then you can see and play with some json conversions in json/handlers/doublesearch.xq (online:28msec.com/source/show/json/handlers/doublesearch.xq) and json/lib/controller/search.xq (online:28msec.com/source/show/json/lib/controller/search.xq).
In particular, what you need is the parse function from this module 28msec.com/api/reference/datatypes/json#parse-1
Sorry, for posting that many links, but I hope it helps.
Hii can anyone pls tell how to limit the max no of message in a posix message queue. I have made changes in proc/sys/fs/mqueue/msg_max
But still whenever i try to read the value of max. message in the queue using attr.mq_curmsgs (where struct mq_attr attr) its giving the default value as 10.... (0 Replies)
I need help to extract a following SOAP-ENV:Header XML message from the log.
XML message need to be extracted:
***************************
<SOAP-ENV:Header>
<ServiceGatewayHeader>
<SourceApplicationId>OXL</SourceApplicationId>
<Version>1.0</Version>
<UserId>TEST</UserId>... (4 Replies)
Hi
I have a log file which contain XML message. I want to extract the value between the tag : <businessEventId>13201330</businessEventId> i.e., 13201330.
I tried the following commands but as the message is very long, unable to do it. Attached is the log file. Please provide inputs.
--... (3 Replies)
Hi!
I am working in an application jsp-java-xml , and i need to validate queries in xquery.
For example
If I put (in a text field)
"for $x in XXX/yyy return data($x/tittle)"
I need a bean(class) that show if the text is correct or not.
And, if were posible, show the syntax error too.
... (2 Replies)
Dear all
I have a log file and the content like this
file name: temp.log
<?xml version="1.0" encoding="cp850"?>
<!DOCTYPE aaabbb SYSTEM '/dtdpath'>
<aaabbb>
<tranDtl>
<msgId>000001</msgId>
</tranDtl>
.....
</aaabbb>
...
... (1 Reply)
Hello men.
How can i build a simple increment for $a by Xquery such as ?
let $a := 0
for $i in (1 to 10)
let $a := $a + 1
return $a
why a in this loop always is '1'
Thank you for reading, its will really helpful for my job if i can solve this problem :D:D (3 Replies)
Hello everyone,
I have created a workflow that will pull down data via a RESTful API in JSON, then my code parses and modifies said data. The problem I have is that these APIs I am working with only accept XML to PUT/POST data, and I am looking for an easy way to convert my JSON file to XML.
... (2 Replies)
Discussion started by: Zaphod_B
2 Replies
LEARN ABOUT DEBIAN
xqilla
XQILLA(1) User Commands XQILLA(1)NAME
xqilla - run XQuery and XPath 2 expressions
SYNOPSIS
xqilla [OPTION]... QUERY-FILE...
DESCRIPTION
Run XQuery and XPath 2 expressions from QUERY-FILE.
-h Show help and exit
-p Parse in XPath 2 mode (default is XQuery mode)
-P Parse in XPath 1.0 compatibility mode (default is XQuery mode)
-s Parse XSLT 2.0
-f Parse using W3C Full-Text extensions
-u Parse using W3C Update extensions
-e Parse using XQilla specific extensions
-d Run the query in interactive debugging mode
-x Use the Xerces-C data model (default is the FastXDM)
-i file
Load XML document and bind it as the context item
-b baseURI
Set the base URI for the context
-v name value
Bind the name value pair as an external variable
-o file
Write the result to the specified file
-n number
Run the queries a number of times
-q Quiet mode - no output
-t Output an XML representation of the AST
The xqilla command line tool can be used to run XQuery and XPath 2 expressions. It is also a good example of how to use the Simple API of
the XQilla library.
REPORTING BUGS
Report bugs to <https://sourceforge.net/projects/xqilla/support>.
COPYRIGHT
Copyright (C) 2001-2008 DecisionSoft Limited.
Copyright (C) 2004-2008 Oracle.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may
obtain a copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITH-
OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
limitations under the License.
SEE ALSO
The full documentation for the XQilla library is available at <http://xqilla.sourceforge.net/Documentation>.
xqilla January 2010 XQILLA(1)