Oracle XML format to VB ADO XML xslt
Hello all,
I believe Oracle produces XML in the following format:
<?xml version = '1.0?>
<row>
<xxx3>abc</xxx3>
<xxx2>def</xxx2>
</row>
BUT, I need to get it in the following XML form:
<xml abcdef>
<rs:data>
<z:row a="abc">
<z:row b="def">
</rs:data>
</xml>
Does anybody have an xslt to do this or can anybody point me in the direction of how to do it please?
Thanks in advance,
Carlos
Here is somethign to get you started on transformation. All you have to do is expand the example.
SQL> set serveroutput on size unlimited
SQL> declare
2 l_ctx DBMS_XMLQUERY.ctxType ;
3 l_xml xmltype ;
4 l_xsl xmltype ;
5 begin
6 select xmltype(dbms_xmlquery.getxml('select * from scott.emp where rownum < 3')) into l_xml from dual ;
7 dbms_output.put_line('original:'||chr(10)||l_xml.getStringVal()) ;
8
9 l_xsl := xmltype(
10 '<?xml version="1.0"?>'||
11 '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"'||
12 ' version="1.0"'||
13 ' result-ns=""'||
14 ' indent="yes">'||
15 '<xsl:output method="xml" media-type="text/xml" indent="yes"/>'||
16 '<xsl:template match="/">'||
17 '<xml>'||
18 ' <xsl:for-each select="/'||l_xml.getRootElement()||'/ROW">'||
19 '<DATA>'||
20 ' <xsl:copy-of select="./*" />'||
21 '</DATA>'||
22 ' </xsl:for-each>'||
23 '</xml>'||
24 '</xsl:template>'||
25 '</xsl:stylesheet>') ;
26 l_xml := l_xml.transform(l_xsl) ;
27 dbms_output.put_line('Modified:'||chr(10)||l_xml.getStringVal()) ;
28 end ;
29 /
original:
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<EMPNO>7369</EMPNO>
<ENAME>SMITH</ENAME>
<JOB>CLERK</JOB>
<MGR>7902</MGR>
<HIREDATE>12/17/1980
0:0:0</HIREDATE>
<SAL>800</SAL>
<DEPTNO>20</DEPTNO>
</ROW>
<ROW num="2">
<EMPNO>7499</EMPNO>
<ENAME>ALLEN</ENAME>
<JOB>SALESMAN</JOB>
<MGR>7698</MGR>
<HIREDATE>2/20/1981 0:0:0</HIREDATE>
<SAL>1600</SAL>
<COMM>300</COMM>
<DEPTNO>30</DEPTNO>
</ROW>
</ROWSET>
Modified:
<xml>
<DATA>
<EMPNO>7369</EMPNO>
<ENAME>SMITH</ENAME>
<JOB>CLERK</JOB>
<MGR>7902</MGR>
<HIREDATE>12/17/1980 0:0:0</HIREDATE>
<SAL>800</SAL>
<DEPTNO>20</DEPTNO>
</DATA>
<DATA>
<EMPNO>7499</EMPNO>
<ENAME>ALLEN</ENAME>
<JOB>SALESMAN</JOB>
<MGR>7698</MGR>
<HIREDATE>2/20/1981 0:0:0</HIREDATE>
<SAL>1600</SAL>
<COMM>300</COMM>
<DEPTNO>30</DEPTNO>
</DATA>
</xml>
PL/SQL procedure successfully completed.
SQL>
Similar Messages
-
Oracle XML / XDK has nightmarishly bad performance
Just wanted to share the results of some testing I've done recently. Thought you would all enjoy this information.
[JAVA_HOME is JDK1.4.2_04]
Oracle XML & XSLT Java library (would not run with -Xmx256m, OutOfMemory)
[xdk_version_10.1.0.3.0_production which comes with JDev 10.1.2]
$ time java -cp ".;../java;../../../../jdev/jdev1012_base/lib/xmlparserv2.jar" -Xmx512m TraxExamples wayne2
real 189m9.400s
user 0m0.010s
sys 0m0.020s
Saxon b8-6 Java library
$ time java -cp ".;../java;../../saxon8.jar" -Xmx256m TraxExamples wayne2
real 1m23.479s
user 0m0.010s
sys 0m0.010s
Saxon 6-5-4 Java library
$ time java -cp ".;../java;../../../saxon6-5-4/saxon.jar" -Xmx256m TraxExamples wayne2
real 1m24.749s
user 0m0.010s
sys 0m0.020s
Sun JDK 1.4.2_04 built-in XML and XSL libraries
$ time java -cp ".;../java" -Xmx256m TraxExamples wayne2
real 4m1.253s
user 0m0.010s
sys 0m0.020s
Literally, the only difference is the XML libraries being used for the transformation. Same exact input xml & xslt files and Java code. And the time difference is 1.5min (Saxon) vs 189min (Oracle). Even the Sun JDK libraries are no slouch vs Oracle XDK at just over 4mins.
We might be doing something in our XSLT that is particularly "bad" for Oracle, but I'm not sure of specifics, I just know these results show Oracle to be the wrong choice for our specific transformations and messages.
(The test file is about 20mb XML and the XSLT is quite simple.)
I'll try this experiment again when 10.1.3 is final and see if things are improved. For now, I'd advise anyone considering XDK to also evaluate other XSL engines!!Sure, here's the code, just modified TraxExamples.java from the Saxonb8-6 release (samples/java/TraxExamples.java) by swapping in my own XML and XSL files instead of the ones that are included with Saxon8.
* Show the simplest possible transformation from File
* to a File.
public static void exampleSimple2(String sourceID, String xslID)
throws TransformerException, TransformerConfigurationException {
TransformerFactory tfactory = TransformerFactory.newInstance();
Transformer transformer =
tfactory.newTransformer(new StreamSource(xslID));
System.out.println("TransformerFactory is: " + tfactory.getClass().getName());
System.out.println("Transformer is: " + transformer.getClass().getName());
transformer.transform(new StreamSource(sourceID),
new StreamResult(new File("exampleSimple2.out")));
I simply added my own call to this method using my own file strings and named it "wayne2" so I could call it directly.
Then as you can see above, I simply changed the JAR files in my classpath before executing the tests. Otherwise, everything in the various tests is identical.
I can probably post the XSLT and a sample XML file if there's enough interest. I don't see a simple way to attach a file to a message in this forum... -
How to do the following XML/XSLT operation in a Java Oracle function?
I'd like to write a Java method with the following signature...
public static oracle.xdb.XMLType bwdtransform(java.lang.String suname, oracle.sql.CLOB documentText)
The documentText is simply a CLOB that contains the XML. It needs to have two XSLT stylesheets applied to it, then made into an XMLType and returned.
Another requirement is that the stylesheets have to have the Java XPath extensibility, which is available using the namespace "xmlns:java.lang.String="http://www.oracle.com/XSL/Transform/java/java.lang.String".
I've tried a couple of different ways using oracle.xdb.XMLType.transform() and the classes in the oracle package oracle.xml.parser.v2.*, which is what the listing I pasted in below is based on, but I haven't been able to get anything to work. I THINK the XMLType.transform failed because I was using the Java XPath extensions.
I'd appreciate it if there's a standard Oracle recommended way to do this operation, preferably as optimized as possible.
Here btw is the current code I'm using which isn't working. Any variables that you see that aren't initialized in the function are static to the class and initialized in a static {} block including the stylesheets which are instances of XSLStylesheet.
public static XMLType bwdtransform(java.lang.String suname, oracle.sql.CLOB documentText) throws Exception {
parser.parse(new ByteArrayInputStream(clobToString(documentText).getBytes()));
XMLDocument documentTextXMLDocument = parser.getDocument();
XMLDocumentFragment docFrag = processor.processXSL(twiddlerXSLStylesheet, processor.processXSL(adopterXSLStylesheet, documentTextXMLDocument));
Document intermediateDoc = docFrag.getOwnerDocument();
XMLType x = new XMLType(conn, intermediateDoc);
return x;
I haven't been able to find any way to make this work and any any help in that direction would be oh so greatly appreciated.
For completeness, here's the version of Oracle I'm running, according to sqlplus...
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Apr 30 20:24:53 2009
Thanks!
RalphThe XMLDB way of doing this like this would be something like the following examples:
SELECT XMLtransform(x.xmlcol,
DBURIType('/XDB/STYLESHEET_TAB/ROW[ID=1]
/STYLESHEET/text()').getXML()).getStringVal()
AS result
FROM po_tab x; or
SELECT XMLtransform(x.xmlcol,
(SELECT stylesheet FROM stylesheet_tab WHERE id=1)).getStringVal()
AS result
FROM po_tab x; or use DBMS_XSLPROCESSOR... -
Sort Date format in Oracle XML Publisher
Hi All,
I have a requirement like trx_date sort. i have taken trx_date in dd-mon-yyyy format. now i given sort option like this..
<?for-each:G_TRX_ORDER_NUMBER?><?sort:TRANSACTION_TYPE?><?sort:DUE_DATE;'ascending';data-type=date?> <?sort:TRX_NUMBER?>
now i have 3 dates
07-NOV-10
20-MAY-11
20-DEC-10
using above sort option.. this dates are not coming as per the ascending order.
Can any one tell me what i have to ?
ThanksWhat is your application release?
Does the sort work for other data types?
What if you change "<?sort:DUE_DATE;'ascending';data-type=date?>" to "<?sort:DUE_DATE;'ascending';data-type='date'?>", does it make any difference?
Few examples about the sort can be found in these docs/links.
How to Group Data Dynamically at Runtime in a BI/XML Publisher RTF Template? [ID 1062816.1]
Sorting Data In eText Template [ID 1263511.1]
Oracle XML Publisher User's Guide
http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115xdoug.zip
Thanks,
Hussein -
ANN: Oracle XML Parser for Java v2.0.2
The new version of the Oracle XML Parser for Java v2 is
available for download and has the following features and
changes:
1. Conformance to the XSLT/XPATH August WD.
Note that there are several changes between April99 XSLT draft
and the August99 XSLT/Xpath draft and these changes have been
implemented in the XSL Processor. The XSL Processor has been
modified to accept XPath syntax for expressions and patterns.
Stylesheets might have to be modified to be conformant to the
August XSLT/XPath draft before they can be used with this
release.
Some of the changes between April draft and the August draft
are:
a. Expressions in the stylesheet must match the XPath
production Expr.
b. Some of the attribute names and element names in XSL
namespace have changed.
c. Some new functions have been added to XPath CORE function
library.
Please refer to the August XSLT/XPath draft for more details.
This is the first production release for v2.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
nullThe link has been fixed. You will go to the v2 download page
now. Sorry for the inconvience.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
Renilton Oliveira (guest) wrote:
: I didn't find the file for version 2.0.0.0 as well.
: Renilton
: Andrei Filimonov (guest) wrote:
: : I tried to download XML Parser for Java v2 it seems that
only
: v
: : 1.0.1.4 is available. Could you please give an exact URL for
: v2
: : download?
: : Andrei Filimonov
: : Oracle XML Team wrote:
: : : The Oracle XML v2 parser is now available for download
here
: as
: : : an early beta release and is written in Java. It features
: an
: : : improved architecture over the Oracle XML v1 parser and
has
: : : shown better performance on small to large XML documents.
: It
: : : will also be able to format the XML document according to
a
: : : stylesheet, having integrated an XSLT processor.
: : : Version 2 of the XML Parser for Java, besides
incorporating
: an
: : : XSLT processor, has been re-architected from version 1.
This
: : has
: : : resulted in a number of changes to the class names
: especially
: : : those that support Namespaces. See v2changes.txt and
: the .diff
: : : difference files in the sample directory.
: : : Oracle XML Team
: : : http://technet.oracle.com
: : : Oracle Technology Network
null -
Building Oracle XML Application Book....
Has anyone purchased the 'Building Oracle XML Applications' book and do they have any opinions on it? Useful?
It it currently orderable, and is planned to ship by September 31st/October 1st, just in time for the Oracle OpenWorld conference.
The full table of contents (which eventually should be put also up on the O'Reilly Site) is:
Preface
Audience for This Book
Which Platform and Version?
Structure of This Book
Chapter Summaries
About the Examples
About the CD-ROM
Conventions Used in this Book
Comments and Questions
Acknowledgements
Part 1: XML Basics
Chapter 1: Introduction to XML
What Is XML?
What Can I Do With XML?
Why Should I Use It?
What XML Technology Does Oracle Provide?
Chapter 2: Working with XML
Creating and Validating XML
Modularizing XML
Searching XML with XPath
Part 2: Oracle XML Fundamentals
Chapter 3: Combining XML and Oracle
Hosting the XML FAQ System on Oracle
Serving XML in Any Format
Acquiring Web-Based XML Content
Chapter 4: Using JDeveloper for XML Development
Working with XML, XSQL, and JSP Files
Working with Database Objects
Using JDeveloper with Oracle XDK Components
Chapter 5: Processing XML with PL/SQL
Loading External XML Files
Parsing XML
Searching XML Documents with XPath
Working with XML Messages
Producing and Transforming XML Query Results
Chapter 6: Processing XML with Java
Introduction to Oracle8i JServer
Parsing and Programmatically Constructing XML
Searching XML Documents in Memory Using XPath
Working with XML Messages
Producing and Transforming XML Query Results
Chapter 7: Transforming XML with XSLT
XSLT Processing Mechanics
Single-Template Stylesheets
Understanding Input and Output Options
Improving Flexibility with Multiple Templates
Chapter 8: Publishing Data with XSQL Pages
Introduction to XSQL Pages
Transforming XSQL Page Results with XSLT
Troubleshooting Your XSQL Pages
Chapter 9: XSLT Beyond the Basics
Using XSLT Variables
The Talented Identity Transformation
Grouping Repeating Data Using SQL
Sorting and Grouping Repeating Data with XSLT
Chapter 10: Generating Datagrams with PL/SQL
Programmatically Generating XML Using PL/SQL
Automatic XML Generation with DBXML
Chapter 11: Generating Datagrams With Java
Generating XML Using Java
Serving XML Datagrams Over the Web
Automatic XML from SQL Queries
Chapter 12: Storing XML Datagrams
Overview of XML Storage Approaches
Loading Datagrams with the XML SQL Utility
Storing Posted XML Using XSQL Servlet
Inserting Datagrams Using Java
Chapter 13: Searching XML with interMedia
Why Use interMedia Text?
What is interMedia Text?
The interMedia Text Query Language
Handling Heterogeneous Doctypes
Handling Doctype Evolution
Advanced interMedia Text
Chapter 14: Advanced XML Loading Techniques
Storing Datagrams in Multiple Tables
Building an XMLLoader Utility
Creating Insert Transformations Automatically
Part 3: Oracle XML Applications
Chapter 15: Using XSQL as a Publishing Framework
Overview of All XSQL Pages Facilities
Additional XML Delivery Options
Chapter 16: Extending XSQL and XSLT with Java
Developing Custom XSQL Actions
Integrating Custom XML Sources
XSLT Extension Functions
Chapter 17: XSLT-Powered Portals and Applications
XSLT-Powered Web Store
Personalized News Portal
Online Discussion Forum
Part 4: Appendices
Appendix 1: XML Helper Packages
Installing the XML Helper Packages
Source Code for the XML Helper Packages
Appendix 2: Installing Oracle XSQL Servlet
Installing
Appendix 3: Conceptual Map to XML Family
Appendix 4: Quick References -
Hi,
I have a bpel process which takes in a particular xml format and does some processing asynchronously. I am calling this bpel process from a web application which uses axis web service to call this application.
Everything works fine when the xml is small (around 10 to 15 kb). But once the xml gets huge(around 250 to 400 kb) error is thrown in bpel in the oracle.xml.parser.v2.XMLElement.readExternal() method. It seems like bpel is not able to reconstruct the object that it had written to some stream before. I learnt from some forum posts that this done for optimizing performance but I would like to know whether i have to tweak something here.
Particularly what does this "java.io.IOException: Error in reading Namespace associated with the node" mean. Below is the error log
10/01/05 20:40:51 java.io.IOException: Error in reading Namespace associated with the node
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLElement.readExternal(XMLElement.java:2954)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2842)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLDocument.readExternal(XMLDocument.java:3394)
10/01/05 20:40:51 at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:345)
10/01/05 20:40:51 at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
10/01/05 20:40:51 at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2266)
10/01/05 20:40:51 at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:878)
10/01/05 20:40:51 at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:515)
10/01/05 20:40:51 at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
10/01/05 20:40:51 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10/01/05 20:40:51 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
10/01/05 20:40:51 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10/01/05 20:40:51 at java.lang.reflect.Method.invoke(Method.java:585)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
10/01/05 20:40:51 at java.security.AccessController.doPrivileged(Native Method)
10/01/05 20:40:51 at javax.security.auth.Subject.doAs(Subject.java:396)
10/01/05 20:40:51 at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
10/01/05 20:40:51 at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
10/01/05 20:40:51 at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
10/01/05 20:40:51 at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
10/01/05 20:40:51 at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
10/01/05 20:40:51 at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
10/01/05 20:40:51 at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
10/01/05 20:40:51 at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
10/01/05 20:40:51 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10/01/05 20:40:51 at java.lang.reflect.Method.invoke(Method.java:585)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
10/01/05 20:40:51 at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
10/01/05 20:40:51 at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
10/01/05 20:40:51 at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
10/01/05 20:40:51 at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
10/01/05 20:40:51 at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
10/01/05 20:40:51 at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
10/01/05 20:40:51 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
10/01/05 20:40:51 at java.lang.Thread.run(Thread.java:595)
10/01/05 20:40:51 0 - ORABPEL-00000
Exception not handled by the Collaxa Cube system.
An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-09222
Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:355)
at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2266)
at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:878)
at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:515)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
Exception: ORABPEL-09222
Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
Handled As: com.collaxa.cube.CubeException
10/01/05 20:40:51 1 - ORABPEL-09222
Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
<2010-01-05 20:40:51,381> <ERROR> <pmf_capability_domain.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "cube delivery": [com.collaxa.cube.CubeException: Exception not handled by the Collaxa Cube system.
An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-09222
Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:355)
at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2266)
at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:878)
at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:515)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
Exception: ORABPEL-09222
Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
Handled As: com.collaxa.cube.CubeException
] -> [com.collaxa.cube.xml.dom.DOMException: Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
ORABPEL-00000
Exception not handled by the Collaxa Cube system.
An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-09222
Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:355)
at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2266)
at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:878)
at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:515)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
Exception: ORABPEL-09222I finally found the root cause of the solution. We are using axis serialization/deserialization at the client end to call the bpel service which works well for small xml. But mysteriously for larger xmls the deserialization fails at the server end when the incoming xml is being used. So we used the regular oracle java api to call the web service. This solved the problem.
We could not find whether the problem lies with Oracle SOA suite 10.1.3.1 or Apache axis 2.0. But as of now these two seem to be incompatible for large xmls at the moment.
Any pointers are welcome! -
Oracle.xml.parser.v2.SAXParser error
I'm reposting this error that I recently received one more time before removing the XML transforms from my Java projects and doing them in .NET.
Code that was working fine suddenly getting a transform error using JDeveloper.
Get the following:
javax.servlet.ServletException: javax.xml.transform.TransformerConfigurationException: XML-22000: (Fatal Error) Error while parsing XSL file (weblogic.xml.jaxp.RegistryXMLReader cannot be cast to oracle.xml.parser.v2.SAXParser).
at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextImpl.java:417)
Seems that
<!--
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<h1>Project Weekly Hours Worked</h1>
<table>
<c:import url="HoursWorked.xml" var="xmlHoursWorked" charEncoding="windows-1252"/>
<c:import url="./HoursWorked3.xsl" var="xslt" charEncoding="windows-1252"/>
<x:transform xml="${xmlHoursWorked}" xslt="${xslt}" />
</table>
-->
will not transform XML to HTML via XSL in JSP anymore.
If I run the XSL i get the HTML results I expected in an HTML test page.
So I know the XML and XSL is sound.
XSL and DOM parsing in Java/Oracle was a major pain in the ass in the first place and now this.
Well I've spent hours going through Oralce/Java documentation on XML, DOM and XSL transforms.
All that time spent and still so unstable. I don't think I was ever able to really get what I wanted
which was to transform my XML document to HTML, update via JSP and have the XML document
be updated and ready to view in a summary page. The XML document changes were never really
available unless I closed the app and restarted. So all in all a failure of capabilities compared to my
use of XML in .NET.
So........
Me thinks it will be a good idea to take out the transforms and have my JSP use a script to invoke a
method in a class that extracts it from a message. Just have PL/SQL interface with XML and do the
transform or serialize thing there.
I don't want to give up on XML but I'm tired of trying to jam a square peg into a round hole
with Java and JDeveloper.
BrianWe don't support file references ("cv1_0.dtd"). Only url type references
are supported, of the form:
@ <!DOCTYPE cv1 SYSTEM "http://www.oracle.com/public/cv1_0.dtd>
Note that the url should be accessible to the world without the need to authenticate.
you could put your dtd in the "public" area in your iFS system.
Thanks,
Sirisha
null -
Hi!
I am trying to reuse a code in JDeveloper to get XML from a query. I have copied the code from a method and created a new method with the copied code and changed it. The problem is that when I run the old code I now get following error:
Ett oförväntat fel har inträffat: Application: FND, Message Name: FND_GENERIC_MESSAGE.
Tokens: MESSAGE = oracle.xml.sql.OracleXMLSQLException: Det här objektet har stängts.
Vill du inte att objektet ska stängas automatiskt mellan anropen kan du granska metoden 'keepObjectOpen()'.;
This means in english something like:
An unexpected error accoured: Application: FND, Message Name: FND_GENERIC_MESSAGE = oracle.xml.sql.OracleXMLSQLException: This object is closed. If you don't want the object to close automatically between calls you can check method 'keepObjectOpen()';
the code I'm running is:
public String punchoutSomething()
throws Exception
StringBuffer sqlForXml =new StringBuffer("select pv.*"
+", cursor(select * from XXPOS_PUNCHOUT_TABLE2 c where c.vendor_id=pv.vendor_id) as contacts"
+" from XXPOS_PUNCHOUT_TABLE1 pv where vendor_id in (");
// add all ids
SuppSummVOImpl vendorView = getSuppSummVO();
Row row;
int punchoutCnt=0;
// vendorView.reset();
Row[] selectedRows = vendorView.getFilteredRows("SelectStatus","Y");
for(int i=0;i<selectedRows.length;i++)
if(punchoutCnt>0)
sqlForXml.append(",");
sqlForXml.append(((Number)selectedRows.getAttribute("VendorId")).toString());
punchoutCnt++;
if(punchoutCnt==0)
sqlForXml.append("-1"); // make sql valid, will not return rows
sqlForXml.append(")");
// System.out.println(sqlForXml); // DEBUG
OADBTransaction tx = (OADBTransaction)getOADBTransaction();
OracleXMLQuery xq = new OracleXMLQuery( tx.getJdbcConnection()
, sqlForXml.toString()
xq.setRaiseException(true); // in case of error raise an exception (default
// is to generate an error document
xq.setEncoding("UTF-8"); // not necessary?
xq.useLowerCaseTagNames();
xq.setRowsetTag("vendors");
xq.setRowTag("vendors_row");
//System.out.println(xq.getXMLString()); // DEBUG
XMLDocument suppl = (XMLDocument)xq.getXMLDOM();
XSLProcessor xslt = new XSLProcessor();
InputStream sheetStream = this.getClass().getResourceAsStream("mystylesheet.xsl");
if(sheetStream==null)
throw new Exception("Could not load stylesheet");
XSLStylesheet sheet = xslt.newXSLStylesheet(
sheetStream
StringWriter serialize = new StringWriter();
xslt.processXSL(sheet,suppl,new PrintWriter(serialize));
String returnXML = serialize.getBuffer().toString();
// System.out.println("X:"+returnXML); // DEBUG
sheetStream.close();
return returnXML;
===================
i've copied the same code into another method and only changed the sql-statment to be used and the stylesheet to use to transform the xml. Is something wrong with that?
Another question: if the xsl refers to a xsd but wihtout any path where should it be?
Thanks for the help,
PatriciaActually, having looked at Metalink, seems that although this message may be accurate and correct,
it has been 'introduced' as part of the 9i JDBC driver.
So, I used the 8i JDBC driver I happened to have instead and that worked fine. -
Setting font on the oracle.xml.dbviewer.DBViewer Bean
Hi there,
I'm working with the DBViewer class in oracle.xml.dbviewer. I'm feeding it an XML
doc and XSL to produce output for a query. Everything works fine, however some
of my data is in Unicode (UTF-8) format. I'm unable to set the font in the DBViewer
in order to display the unicode characters. I've tried myDbViewer.setFont(myUniFont)
but that doesn't work.
Do I need to do something to the XSL in order to handle unicode?
Thanks much in advance!
-TobyHi there,
I'm working with the DBViewer class in oracle.xml.dbviewer. I'm feeding it an XML
doc and XSL to produce output for a query. Everything works fine, however some
of my data is in Unicode (UTF-8) format. I'm unable to set the font in the DBViewer
in order to display the unicode characters. I've tried myDbViewer.setFont(myUniFont)
but that doesn't work.
Do I need to do something to the XSL in order to handle unicode?
Thanks much in advance!
-Toby -
ANN: Oracle XML Parser for Java v2.0.0.1
A new maintenance release of the Oracle Parser for Java is
available for download. It has the following fixes and changes:
Bug fixes for #920536, i.e. Cannot access element attributes via
XSLT; #898423. i.e. ElementDecl's in DTDs; #774774, i.e. DOM
extensions using XSL pattern matching; #863890 i.e. SAX
IOException not thrown.
New APIs in the following new interface:
1. oracle.xml.parser.v2.NSResolver
- resolveNamespacePrefix( find the namespace definition in scope
for a given namespace prefix )
New APIs in the following classes:
1. oracle.xml.parser.v2.XMLNode
- selectNodes( Selects nodes from the tree which match the given
pattern; client can provide an NSResolver implementation to
resolve namespace prefixes in the pattern ).
2. oracle.xml.parser.v2.ElementDecl
- getParseTree( Returns the root Node of Content Model parse
tree, which could then be traversed node by node using
getFirstChild() and getLastChild(). The Node types are: PLUS,
COMMA, ASTERISK, ELEMENT, QMARK ).
This is the first beta patch release for v2.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
nullunzip -l appsborg2.zip | grep 9.0.4
0 04-18-03 20:10 .xdkjava_version_9.0.4.0.0_production
do i still need to do that step?No, you do not have to since "XML Parser for Java v9.0.4" is already installed as part of appsborg2.zip -
Does Oracle XML parser support scripts?
I've tried using scripts in my XSL which I parse with Oracle XML parser v2. If the function does not exist, I get error. But if the function exists, I get nothing at all on the output! Not even simple function that only returns a string.
I also have the same problems with <xsl:eval>.
Thank you for reading this,
David.We fully support the XSLT 1.0 Recommendation.
<xsl:eval> and <xsl:script>
are not features of the XSLT standard. -
Nls support with oracle xml parser in java
I'm using The JAXP interface to manipulate xml with xsl. the implementation that I use is Oracle xml parser.
My xml contains a lot of hebrew chars, and in the result stream each char translated into 5-6 chars, which makes the result to be 5-6 times bigger than it suppose to be, and harder for me to debug my application.
The client's browser shows the results well.
How can I make the transformator to transform the hebrew chars to hebrew char istead of longer and not readable string ?Oracle XML Team wrote:
: Stephen Flinter (guest) wrote:
: : Environment: WinNT 4.0/SP4, Apache 1.3.6, JServ 1.0, Oracle
: 8.1.5
: : I have downloaded the new Java v2 XML Parser (2.0.2), and
have
: : replaced the wrapper.classpath entry in my jserv.properties
: file
: : with the path to the new parser.
: : When I rerun the "Employee Page" demo, I get the following
: : exception message:
: : [15/09/1999 11:02:22:974 GMT] java.lang.NoSuchMethodError:
: : oracle.xml.parser.v2.XSLProcessor: method
: : processXSL
: (Loracle/xml/parser/v2/XSLStylesheet;Loracle/xml/parser
: : /v2/XMLDocument;)Lorg/w3c/dom/DocumentFragment; not found
: : at oracle.xml.xsql.XSLHelper.process(XSLHelper.java:34)
: : at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java,
: : Compiled Code)
: : at
: : javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
: : at
: : javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
: : at
: : org.apache.jserv.JServConnection.processRequest
: (JServConnection.j
: : ava)
: : at
: : org.apache.jserv.JServConnection.run(JServConnection.java)
: : at java.lang.Thread.run(Thread.java:479)
: : This demo was works fine with the parser shipped with the
: : xsql_servlet download.
: : Regards,
: : Steve
: Version 2.0.2 uses the August XSLT WD which is incompatible
with
: the April WD on which our previous releases including the demos
: were based.
: Oracle XML Team
: http://technet.oracle.com
: Oracle Technology Network
Hi,
Can someone from the Oracle XML Team point us to a fix so we can
continue our testing???
Steve...
null -
Oracle XML to HSBC XML mapping for R12 AP Check Printing
Hi,
Our environment is Oracle APPS R12.
We need to send an electronic payment information to HSBC bank. So this will be generated 'like' a check from the payments process, but for payment types of WIRE, ACH, etc...and the output is an XML file in a format specified by the bank HSBC. We need to send an XML file to HSBC per their spec. The data that needs to go in this file is the same payment information that Oracle already provides in the standard check printing. We need to take that data and turn it into XML matching the HSBC spec (hence the XML to XML mapping).
I am not sure how to get the source for standard check printing prog. Any idea of how to do Oracle XML- HSBC XML Mapping? Any help is really appreciated.
Thanks
ValliReview this note, you will get source of check printing program
R12: Master Troubleshooting Guide for Oracle Payables Check Printing issues (Doc ID 1353280.1)
thanks -
Does the latest release of the Oracle XML Parser for Java support JDK 1.2.2?
I have an application which makes use of the XML Parser which runs fine with JDK 1.1.7.
But the application crashes with the use of JDK 1.2.2 .
Any insight into this is appreciated.
nullThe Oracle XSQL Servlet makes extensive use of the Oracle XML Parser for Java V2 as well as its XSLT Engine and runs without issue under 1.1.8 and 1.2.2.
-
ANN: Oracle XML Parser for C - v2.0.7
A new release of the Oracle XML Parser for C (release 2.0.7) for Solaris and NT is now available from OTN at http://technet.oracle.com/tech/xml.
Key new features include:
XSLT improvements: This release further improves upon the processing speed and memory requirements for XSLT.
By using -r directive the effect of <xsl:output> instruction and "disable-escape" attributes can be taken in to account while doing XSLT processing.
Oracle XML TeamA new release of the Oracle XML Parser for C (release 2.0.7) for Solaris and NT is now available from OTN at http://technet.oracle.com/tech/xml.
Key new features include:
XSLT improvements: This release further improves upon the processing speed and memory requirements for XSLT.
By using -r directive the effect of <xsl:output> instruction and "disable-escape" attributes can be taken in to account while doing XSLT processing.
Oracle XML Team
Maybe you are looking for
-
0FC_BP_ITEMS: ERP customizing and delta mechanism
Hi BI fans I have two questions: 1.) The following link describes how to make the settings for delta enabling of datasource 0FC_BP_ITEMS: http://help.sap.com/saphelp_nw70/helpdata/en/27/42073e774a4329b6dd6bab21eef613/frameset.htm Prerequisites- "...I
-
I wanted to transfer some apps to my SD card and I was only able to transfer about 10 and the rest wouldn't. The 'transfer to SD card' button wasn't highlighted and when I tried it, it wouldn't actuate. Is that normal? I've had a couple of Droid's wi
-
My computer says i am out of paper when i am not
my computer shows its out of paper, when its not
-
Hi all, I am using Model nodes for getting data and sending data back to BAPI. But if i perform search, i get results and once i come back and perform another search its showing previous results. I am invalidating Context and eventhen it shows previo
-
This Spreadsheet cannot be opened
Today I discovered that one of my spreadsheets (a very important one) cannot be opened any more. I last worked in it March 27th. It cannot be opened on my mac, on my ipad, via iCloud Numbers Beta, nowhere. There are no newer versions of Numbers. It d