Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
XQuery Help and Discussion
»
two xml statements when mapping xml
Conferences
Stylus Studio Feature Requests
(1192)
Stylus Studio Technical Forum
(14621)
Website Feedback
(249)
XSLT Help and Discussion
(7625)
XQuery Help and Discussion
(2017)
Help to write Xquery
(2)
XQuery java ddtek:serialize-to...
(2)
EDI to XML Automation
(2)
Generating XQUERY to use in Or...
(2)
Stylus is not easy to learn XQ...
(2)
java.lang.OutOfMemoryError
(1)
how to save to xml format
(2)
Formating a date in xquery
(2)
two xml statements when mappin...
(5)
two xml statements when m...
two xml statements when m...
two xml statements when m...
two xml statements when m...
XQuery
(2)
saxon-license.lic Not Found
(2)
hands off conversion to final ...
(2)
fn:substring in XQuery to Orac...
(4)
Using Saxon with XQuery to ins...
(4)
Can't SAVE or DO a SAVE AS Fro...
(2)
Saxon Unexpected token < e o f...
(2)
Inserting and selecting data i...
(2)
convert sql statement into xml...
(1)
need help in converting this a...
(2)
IS IT POSSIBLE TO DO AN XQUERY...
(2)
Previous
[61-80]
[81-100]
[101-120]
Next
Stylus Studio FAQs
(159)
Stylus Studio Code Samples & Utilities
(364)
Stylus Studio Announcements
(113)
Topic
next
Subject:
two xml statements when mapping xml
Author:
Jon Gallegos
Date:
29 Jan 2011 01:03 PM
I am running an xquery which I map into an QBXML format. However i can not seem to create the qbxml statement required by quickbooks.
Here is an example of the xml i am creating
<?xml version="1.0" encoding="utf-8"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
And here is what quickbooks requires
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="8.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
How do I produce that second XML statement?
next
Subject:
two xml statements when mapping xml
Author:
Ivan Pedruzzi
Date:
29 Jan 2011 09:26 PM
The following xquery statement creates a processing instruction
Hope this helps
Ivan
processing-instruction {"qbxml"} {"version='8.0'"}
next
Subject:
two xml statements when mapping xml
Author:
Jon Gallegos
Date:
01 Feb 2011 06:20 AM
I am doing something wrong because it does not seem to work for me. This is what I have at the beginning of my xquery
declare namespace tns = "
http://webservice.rainiersofware.com/";
declare option ddtek:serialize "omit-xml-declaration=no";
processing-instruction {"qbxml"}{"version='8.0'"} ;
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<CustomerAddRq>
and the error message I get is
[DataDirect][XQuery][err:XPST0003]Error at line 3, column 51. Unexpected token ";" beyond end of query.
when I take out the ";" then I get
[DataDirect][XQuery][err:XPST0003]Error at line 5, column 7. Unexpected token ">" beyond end of query.
next
Subject:
two xml statements when mapping xml
Author:
Ivan Pedruzzi
Date:
04 Feb 2011 11:18 PM
Here is a full working example
declare namespace tns = "
http://webservice.rainiersofware.com/";
declare option ddtek:serialize "omit-xml-declaration=no,indent=yes";
" ",
processing-instruction {"qbxml"}{"version='8.0'"}," ",
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<CustomerAddRq>
</CustomerAddRq>
</QBXMLMsgsRq>
</QBXML>
Hope this helps
Ivan
top
Subject:
two xml statements when mapping xml
Author:
Jon Gallegos
Date:
05 Feb 2011 10:34 AM
That did the trick!
thanks
If I wanted to do that in a regular map (xslt), how would I do that?
Powered by
Stylus Studio
, the world's leading
XML IDE
for
XML
,
XSLT
,
XQuery
,
XML Schema
,
DTD
,
XPath
,
WSDL
,
XHTML
,
SQL/XML
, and
XML Mapping
!
Go to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.