Memory Leakage while parsing and schema validation

It seems there is some kind of memory leakage. I was using xdk 9.2.0.2.0. Later i found that from this forum which contain a Topic on this and they (oracle ) claim they have memory leakage. And they have fixes this bugs in 9.2.0.6.0 xdk. When i used truss command, for each call to parser and schame validation, it was opening file descriptor for lpxus and lsxus file. And this connections were not close. And keep on openning it with each call to parser. I was able to diagonise this using truss command on on solaris. After making many calls, i was error message could not open file Result.xsd (0202). I am using one instance of Parser and Schema. And i am doing clean up for parser after each parse.
Later i downloaded, 9.2.0.6.0,
Above problem for the parser was solvedm but still the problem continued for schema validation. And even i tried with latest beta release 10.
And this has caused great troubles to us. Please can u look whether there is come sort of leakage. Please advice if u have any solution.
Code---
This below code is called multiple times
char* APIParser::execute(const char* xmlInput) {
          char* parseResult = parseDocument(xmlInput);
          //if(strcmp(parseResult,(const char*)"")==0) {
if(parseResult == NULL) {
               parseResult = getResult();
parser.xmlclean();
     return parseResult;
          } else {
               return parseResult;
Parser and schema are intialised in Construtor and terminated in Destructor.

Hi, here is the complete test case
#include<iostream>
#ifndef ORAXML_CPP_ORACLE
# include <oraxml.hpp>
#endif
using namespace std;
#define FAIL { cout << "Failed!\n"; return ; }
void mytest(int count)
     uword ecode;
     XMLParser parser;
     Document *doc;
     Element root, elem;
     if (ecode = parser.xmlinit())
          cout << "Failed to initialze XML parser, error " << ecode << "\n";
          return ;
     cout << "\nCreating new document...\n";
     if (!(doc = parser.createDocument((oratext *) 0, (oratext *) 0,(DocumentType *) 0)))
     FAIL
     if (!(elem = doc->createElement((oratext *) "ROOT")))
               FAIL
     string test="Elem";
     for(int i=0;i<count;i++)
          //test="Elem"+string(ltoa(i));
          if (!(elem = doc->createElement((oratext *) "element")))
               FAIL
          if (!doc->appendChild(elem))
               FAIL
     //doc ->print();
     //parser.xmlclean();
     parser.xmlterm();
int main(int argc,char* argv[])
     int count=atol(argv[1]);
     mytest(count);
     char c;
     cout<<"check memory usage n press any key"<<endl;
     cin>>c;
     return 0;
-------------------------------------------cut here-----
Now, i cant use the xdk 10g because i work on a hpux machine. I have tried the above program with a count of 1000000. the memory usage at the end was around 2 gigabytes.
Could someone please please help me? :(
Thank you.

Similar Messages

  • Oracle XML parser and schema validation

    Hi Forum,
    I have problem parsing XML with validation against XML schema. I define location of schema (URL) in xml file and Oracle parser could not find the schema (xml file is correct - checked in other programs). When I point to xml schema directly from Java (using parser.setXMLSchema) before calling parser.parse, it works just fine. Where is the problem? Does oracle parser works correctly with XML Schema?
    TIA,
    Alex

    SAXParser saxParser=new SAXParser();
    saxParser.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    Specify a Schema to validate a XML document with, for the SAXParser.
    saxParser.setXMLSchema(SchemaUrl);
    DefaultHandler handler=new DefaultHandler();
    saxParser.setErrorHandler(handler);
    Parse the XML document to validate with the XML schema.
    saxParser.parse(XmlDocumentUrl);

  • Huge memory usage while parsing a large number of files

    hi,
    I use ORACLE8i XML parser class in my app.The problem is that
    when I parse a large number of xml files ,memory usage is so
    huge as more than 100M byte.Even worse,sometime I saw virtual
    memory low dialog.Could anybody give me some idea about this.
    any reply are welcome.Thanks a lot.

    Hi Mike. Yes I do have this enabled but this should only be requesting login to view the normal (open) applications. What I end up getting, after I login, is all the applications restarting. In the case of the synchronising files the database has to rebuild itself every time (160,000 files), and nothing has been happening while logged out. Using the Caffeine app I have still enabled the screensaver using a hot corner and had to log back in after 10 minutes but all the applications were still running, including the synchronisation. I am pretty sure my laptop has not gone into sleep mode, or it wouldn't have to reopen the apps, but it also has not shutdown as I get a login box as soon as I press any key. I can't understand the problem, and what makes it even stranger is that it is happening on two separate MacBooks at the same time. Thanks for the suggestion – really appreciated.
    OldGnome - thanks for the suggestion for the other app. I chose Caffeine as this has really good user reviews but the other one doesn't seem to have any, but I might still try it. Again thanks for your help.

  • JAXP parser and schema

    I have a schema which use <xs:include> to include different schema.
    When creating XML DOM parser I handled the schema and it's location
    on the disk.
    When running the XML parser, I handled it XML file which located in the
    same directory in the disk where the 2 schemas located, and it works
    well.
    The problem is when I move the XML file to different directory on the
    disk the parser shouts that it can not find the schema.
    I tried to use URI in the include, but it didn't work as well.
    I will appreciate your help
    Thanks.

    Specify relative path of schema, schemaLocation="/schema.xsd"
    or absolute path of schema, schemaLocation="c:/schema.xsd"

  • Out of memory Error While deploying and building the application

    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0808f7ef, pid=5036, tid=5072
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode)
    # Problematic frame:
    # V [jvm.dll+0x8f7ef]
    --------------- T H R E A D ---------------
    Current thread (0x078b4ac0): JavaThread "ExecuteThread: '9' for queue: 'weblogic.kernel.Default'" daemon [_thread_in_vm, id=5072]
    siginfo: ExceptionCode=0xc0000005, reading address 0x079c7ffc
    Registers:
    EAX=0x00000000, EBX=0x078b4ac0, ECX=0x079c7ff0, EDX=0x0080908c
    ESP=0x0823f5a0, EBP=0x0823f5f8, ESI=0x0718ac70, EDI=0x00000000
    EIP=0x0808f7ef, EFLAGS=0x00010246
    Top of Stack: (sp=0x0823f5a0)
    0x0823f5a0: 08064249 0080908c 079c7ff0 0823f618
    0x0823f5b0: 0718ac20 0808f80a 0080908c 0808f7e5
    0x0823f5c0: 0718a220 0808eda6 0080908c 0003bc78
    0x0823f5d0: 0808eec6 0080908c 0823f618 00000001
    0x0823f5e0: 080925ab 0080908c 078b4d7c 00000001
    0x0823f5f0: 00000000 078b4ac0 0823f60c 0095f4f4
    0x0823f600: 0080908c 0823f618 078b4b5c 0823f628
    0x0823f610: 0095f4ac 078b4b5c 0080908c 0823f624
    Instructions: (pc=0x0808f7ef)
    0x0808f7df: 02 33 c0 c2 04 00 8b 4c 24 08 8b 54 24 04 33 c0
    0x0808f7ef: 3b 51 0c 0f 94 c0 c3 56 8b f1 68 e5 f7 08 08 ff
    Stack: [0x08200000,0x08240000), sp=0x0823f5a0, free space=253k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x8f7ef]
    C [jdwp.dll+0xf4f4]
    C [jdwp.dll+0xf4ac]
    C [jdwp.dll+0xbf91]
    C [jdwp.dll+0xbe23]
    C [jdwp.dll+0x7b6b]
    C [jdwp.dll+0x89c8]
    V [jvm.dll+0x8fc00]
    V [jvm.dll+0x909e4]
    V [jvm.dll+0x90291]
    V [jvm.dll+0x6df8a]
    j jsp_servlet._data_usage.__new_request._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+2387
    j com.telus.smartdesktop.framework.JSPControllerServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+74
    j weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;+12
    j weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V+387
    j weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V+618
    j weblogic.servlet.internal.TailFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+10
    j weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+28
    j com.sun.identity.agents.filter.AmAgentFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+175
    j weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+28
    j weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;+79
    j weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;+34
    j weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;+18
    j weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V+685
    j weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic/kernel/ExecuteThread;)V+141
    j weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V+23
    j weblogic.kernel.ExecuteThread.run()V+66
    v ~StubRoutines::call_stub
    V [jvm.dll+0x72846]
    V [jvm.dll+0xac976]
    V [jvm.dll+0x72753]
    V [jvm.dll+0x7244f]
    V [jvm.dll+0x72488]
    V [jvm.dll+0x8a3a0]
    V [jvm.dll+0xd0de8]
    V [jvm.dll+0xd0db6]
    C [MSVCRT.dll+0x2a3b0]
    C [kernel32.dll+0xb729]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j jsp_servlet._data_usage.__new_request._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+2387
    j com.telus.smartdesktop.framework.JSPControllerServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+74
    j weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;+12
    j weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V+387
    j weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V+618
    j weblogic.servlet.internal.TailFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+10
    j weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+28
    j com.sun.identity.agents.filter.AmAgentFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+175
    j weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+28
    j weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;+79
    j weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;+34
    j weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;+18
    j weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V+685
    j weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic/kernel/ExecuteThread;)V+141
    j weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V+23
    j weblogic.kernel.ExecuteThread.run()V+66
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x071c8520 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=5340]
    0x07aa37b0 JavaThread "Thread-20" daemon [_thread_in_native, id=3248]
    0x07f777f0 JavaThread "HvcReferenceDataPeriodicRefreshThread" daemon [_thread_blocked, id=1448]
    0x07aa30f0 JavaThread "SD-PerformanceMonitorThread" daemon [_thread_blocked, id=5856]
    0x08bb2b48 JavaThread "cache-PrepareThread" daemon [_thread_blocked, id=3968]
    0x07cfe008 JavaThread "cache-CommitThread" daemon [_thread_blocked, id=4128]
    0x00a59410 JavaThread "Thread-14" daemon [_thread_in_native, id=2096]
    0x073e0a20 JavaThread "ListenThread.Default" [_thread_in_native, id=4432]
    0x07b2b808 JavaThread "Thread-12" [_thread_blocked, id=4472]
    0x072ad9f8 JavaThread "Thread-11" daemon [_thread_in_native, id=4160]
    0x0893b648 JavaThread "RulesCachePeriodicRefreshThread" daemon [_thread_blocked, id=2024]
    0x07485828 JavaThread "ReferenceDataRefreshThread" daemon [_thread_blocked, id=2204]
    0x07e80408 JavaThread "ExecuteThread: '4' for queue: 'weblogic.socket.Muxer'" daemon [_thread_in_native, id=1588]
    0x071fb3e8 JavaThread "ExecuteThread: '3' for queue: 'weblogic.socket.Muxer'" daemon [_thread_in_native, id=3532]
    0x07bf4240 JavaThread "ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" daemon [_thread_in_native, id=112]
    0x07bf40d8 JavaThread "ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'" daemon [_thread_in_native, id=3680]
    0x07294ea0 JavaThread "ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'" daemon [_thread_in_native, id=6016]
    0x00a71e60 JavaThread "com.telus.provider.scheduling.Scheduler@b245dc" daemon [_thread_blocked, id=4636]
    0x07204828 JavaThread "ExecuteThread: '3' for queue: 'JMS.TimerClientPool'" daemon [_thread_blocked, id=5604]
    0x07b2cea0 JavaThread "ExecuteThread: '2' for queue: 'JMS.TimerClientPool'" daemon [_thread_blocked, id=1520]
    0x0791bea0 JavaThread "ExecuteThread: '1' for queue: 'JMS.TimerClientPool'" daemon [_thread_blocked, id=5496]
    0x07849ce0 JavaThread "ExecuteThread: '0' for queue: 'JMS.TimerClientPool'" daemon [_thread_blocked, id=3828]
    0x0739af88 JavaThread "Thread-6" daemon [_thread_blocked, id=2784]
    0x072241d0 JavaThread "ExecuteThread: '0' for queue: 'JMS.TimerTreePool'" daemon [_thread_blocked, id=4004]
    0x072eb7b8 JavaThread "weblogic.health.CoreHealthMonitor" daemon [_thread_blocked, id=3976]
    0x0754ace0 JavaThread "Thread-5" [_thread_blocked, id=3236]
    0x078eac38 JavaThread "DoSManager" [_thread_blocked, id=3740]
    0x07893190 JavaThread "VDE Transaction Processor Thread" [_thread_blocked, id=3408]
    0x07938408 JavaThread "ExecuteThread: '2' for queue: 'weblogic.admin.RMI'" daemon [_thread_blocked, id=4372]
    0x07abb408 JavaThread "ExecuteThread: '1' for queue: 'weblogic.admin.RMI'" daemon [_thread_blocked, id=5148]
    0x07aafda8 JavaThread "ExecuteThread: '0' for queue: 'weblogic.admin.RMI'" daemon [_thread_blocked, id=2656]
    0x0739c898 JavaThread "ExecuteThread: '1' for queue: 'weblogic.admin.HTTP'" daemon [_thread_blocked, id=4264]
    0x074009b8 JavaThread "ExecuteThread: '0' for queue: 'weblogic.admin.HTTP'" daemon [_thread_blocked, id=5196]
    0x078004a8 JavaThread "weblogic.security.SpinnerRandomSource" daemon [_thread_blocked, id=3516]
    0x077ffea8 JavaThread "weblogic.time.TimeEventGenerator" daemon [_thread_blocked, id=1296]
    0x0718aea0 JavaThread "ExecuteThread: '4' for queue: 'weblogic.kernel.System'" daemon [_thread_blocked, id=2072]
    0x0718a220 JavaThread "ExecuteThread: '3' for queue: 'weblogic.kernel.System'" daemon [_thread_blocked, id=2832]
    0x071895d8 JavaThread "ExecuteThread: '2' for queue: 'weblogic.kernel.System'" daemon [_thread_blocked, id=3696]
    0x071d6ed8 JavaThread "ExecuteThread: '1' for queue: 'weblogic.kernel.System'" daemon [_thread_blocked, id=4064]
    0x071d6ac0 JavaThread "ExecuteThread: '0' for queue: 'weblogic.kernel.System'" daemon [_thread_blocked, id=5168]
    0x071d5640 JavaThread "ExecuteThread: '14' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=1184]
    0x071d4ab8 JavaThread "ExecuteThread: '13' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=2200]
    0x07401b68 JavaThread "ExecuteThread: '12' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4608]
    0x07a99900 JavaThread "ExecuteThread: '11' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=5900]
    0x078b4df8 JavaThread "ExecuteThread: '10' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4028]
    =>0x078b4ac0 JavaThread "ExecuteThread: '9' for queue: 'weblogic.kernel.Default'" daemon [_thread_in_vm, id=5072]
    0x078b4018 JavaThread "ExecuteThread: '8' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4108]
    0x07380448 JavaThread "ExecuteThread: '7' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4740]
    0x07477c30 JavaThread "ExecuteThread: '6' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4668]
    0x07477a28 JavaThread "ExecuteThread: '5' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=844]
    0x07bdda60 JavaThread "ExecuteThread: '4' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4588]
    0x07bdd8f8 JavaThread "ExecuteThread: '3' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=3732]
    0x07195918 JavaThread "ExecuteThread: '2' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=5588]
    0x071957b0 JavaThread "ExecuteThread: '1' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=5116]
    0x0787d008 JavaThread "ExecuteThread: '0' for queue: 'weblogic.kernel.Default'" daemon [_thread_blocked, id=4956]
    0x07a7b1f8 JavaThread "Thread-1" daemon [_thread_blocked, id=5328]
    0x00a148a8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5716]
    0x00a139c0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3524]
    0x00a12538 JavaThread "JDWP Event Helper Thread" daemon [_thread_in_native, id=5680]
    0x009d4d38 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_in_native, id=5748]
    0x009d1530 JavaThread "Finalizer" daemon [_thread_blocked, id=4868]
    0x009d0120 JavaThread "Reference Handler" daemon [_thread_blocked, id=4184]
    0x0003ce58 JavaThread "main" [_thread_blocked, id=420]
    Other Threads:
    0x00a116f8 VMThread [id=3084]
    0x00a164f8 WatcherThread [id=4416]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x0003bc78/0x00000f20] Threads_lock - owner thread: 0x078b4ac0
    Heap
    def new generation total 36288K, used 13059K [0x10010000, 0x12770000, 0x12770000)
    eden space 32256K, 32% used [0x10010000, 0x10a2b788, 0x11f90000)
    from space 4032K, 67% used [0x12380000, 0x12625788, 0x12770000)
    to space 4032K, 0% used [0x11f90000, 0x11f90000, 0x12380000)
    tenured generation total 483968K, used 27091K [0x12770000, 0x30010000, 0x30010000)
    the space 483968K, 5% used [0x12770000, 0x141e4ec0, 0x141e5000, 0x30010000)
    compacting perm gen total 44544K, used 44391K [0x30010000, 0x32b90000, 0x34010000)
    the space 44544K, 99% used [0x30010000, 0x32b69d30, 0x32b69e00, 0x32b90000)
    Dynamic libraries:
    0x00400000 - 0x0040b000      C:\bea\jdk142_11\jre\bin\java.exe
    0x7c900000 - 0x7c9b2000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f6000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f03000      C:\WINDOWS\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\MSVCRT.dll
    0x08000000 - 0x0813f000      C:\bea\jdk142_11\jre\bin\client\jvm.dll
    0x7e410000 - 0x7e4a1000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f59000      C:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.DLL
    0x10000000 - 0x10007000      C:\bea\jdk142_11\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x003a0000 - 0x003ae000      C:\bea\jdk142_11\jre\bin\verify.dll
    0x003c0000 - 0x003d9000      C:\bea\jdk142_11\jre\bin\java.dll
    0x003e0000 - 0x003ee000      C:\bea\jdk142_11\jre\bin\zip.dll
    0x00950000 - 0x0096c000      C:\bea\jdk142_11\jre\bin\jdwp.dll
    0x003f0000 - 0x003f5000      C:\bea\jdk142_11\jre\bin\dt_socket.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\ws2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\system32\mswsock.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    0x06fb0000 - 0x06fbf000      C:\bea\jdk142_11\jre\bin\net.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x070d0000 - 0x070d8000      C:\bea\jdk142_11\jre\bin\nio.dll
    0x070e0000 - 0x070e6000      C:\bea\jdk142_11\jre\bin\ioser12.dll
    0x09940000 - 0x09945000      C:\bea\weblogic81\server\bin\stackdump.dll
    0x09950000 - 0x09955000      C:\bea\weblogic81\server\bin\wlntio.dll
    0x68000000 - 0x68036000      C:\WINDOWS\system32\rsaenh.dll
    0x769c0000 - 0x76a74000      C:\WINDOWS\system32\USERENV.dll
    0x5b860000 - 0x5b8b5000      C:\WINDOWS\system32\netapi32.dll
    VM Arguments:
    jvm_args: -Xmx512M -Xms512M -Dcom.telus.provider.initialContextFactory=weblogic.jndi.WLInitialContextFactory -Dcom.telus.provider.providerURL=t3://wlpt168smartdteca:6382 -Dcom.telus.credit.providerURL=t3://wlpt168eascommonservices:8623 -Dcom.telusmobility.config.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory -Dcom.telusmobility.config.java.naming.provider.url=ldap://ldapread-pt168.tmi.telus.com:589/cn=pt168_81,o=telusconfiguration -DignoreIdentity=true -Dbranding=super -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=9090,suspend=n,server=y -Dweblogic.Domain=smartdesktop -Dbea.home=C:\bea -Djava.security.policy==C:\bea\weblogic81\server\lib\weblogic.policy -Dweblogic.ProductionModeEnabled=false
    java_command: weblogic.Server
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\bea\jdk142_11
    CLASSPATH=C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WEBLOG~1\server\lib\weblogic_sp.jar;C:\bea\WEBLOG~1\server\lib\weblogic.jar;C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbserver44.jar;C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbclient44.jar;C:\bea\JROCKI~1\jre\lib\rt.jar;C:\bea\WEBLOG~1\server\lib\webservices.jar;.;C:\Program Files\Java\jre1.5.0_09\lib\ext\QTJava.zip;..\..\..\..\common\ThirdParty\sun\mail\activation.jar;..\..\..\..\common\ThirdParty\sun\mail\mail.jar
    PATH=C:\bea\WEBLOG~1\server\bin;C:\bea\jdk142_11\jre\bin;C:\bea\jdk142_11\bin;C:\bea\WEBLOG~1\server\bin;C:\bea\jdk142_11\jre\bin;C:\bea\jdk142_11\bin;C:\bea\WEBLOG~1\server\bin;C:\bea\JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\ActivIdentity\ActivClient\;C:\Program Files\Borland\CaliberRM SDK 2008\lib;C:\Program Files\Borland\StarTeam SDK 10.0\Lib;C:\Program Files\Borland\StarTeam SDK 10.0\Bin;C:\Program Files\Borland\CaliberRM SDK 2008;C:\Program Files\Borland\StarTeam SDK 10.0;C:\Program Files\Windows Imaging\;C:\Program Files\Oracle\jre\1.1.8\bin\;C:\Oracle9i\bin\;C:\ORACLE\Product\11.2.0\client_1;C:\WINDOWS\system32\;C:\WINDOWS\system32\Wbem;C:\Program Files\InstallShield\AdminStudio\6.0\ConflictSolver;C:\Program Files\ClickSoftware\Service Optimization\Bin;C:\Program Files\Windows Imaging;C:\Program Files\QuickTime\QTSystem\;C:\bea\WEBLOG~1\server\bin\oci920_8;C:\bea\WEBLOG~1\server\bin\oci920_8
    USERNAME=x120751
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 37 Stepping 5, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 3
    CPU:total 4 family 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 2097151k(1723568k free), swap 4194303k(4117288k free)
    vm_info: Java HotSpot(TM) Client VM (1.4.2_11-b06) for windows-x86, built on Feb 13 2006 10:19:30 by "java_re" with MS VC++ 6.0
    My ant build.xml is as given below
    <case value="pt">
    <property name="jvmArgs" value="-hotspot -Xmx512M -Xms512M -Dcom.telus.provider.initialContextFactory=weblogic.jndi.WLInitialContextFactory -Dcom.telus.provider.providerURL=cc://wlpt111smartdteca:4444 -Dcom.telus.cd.providerURL=w3://wlpt111eascommonservices:444 -Dcom.mobility.config.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory -Dcom.bility.config.java.naming.provider.url=ldap://ldapread-pt.tmi.cins.com:555/cn=pt33_181,o=telusconfiguration"/>
    </case>
    <java failonerror="true" fork="true" dir="${deployDir}/jspc" classname="weblogic.appc" classpathref="appc.classpath">
    <jvmarg line="-Xmx1024M -Xms1024M"/>
    <arg line="-forceGeneration -verbose -deprecation ${sourceDir}/html"/>
    </java>

    Hi user13118647,
    It looks like your application is triggering an existing Sun HotSpot VM bug from the older 1.4.2_11 JDK.
    Please review the Sun bug references below.
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6405062
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6385867
    The problem appears to be resolved in JDK 1.4.2_13(b01). You may want to download and attempt to replicate with this service pack upgrade.
    Another potential problem I noticed is at your classpath level. It looks like you are using a mix of runtime JDK jar files from the Sun JDK and JRockit. Please ensure your JDK classpath; including any reference to any JDK related runtime jar files (tools.jar, rt.jar etc.) is consistent and unique e.g. Sun HotSpot or Oracle JRockit but not both.
    ## Example:
    JAVA_HOME=C:\bea\jdk142_11 // JDK home is setup to the Sun JDK
    CLASSPATH=C:\bea\JROCKI~1\lib\tools.jar; // tools.jar is loaded from the JRockit JDK home
    Regards,
    P-H
    http://javaeesupportpatterns.blogspot.com/

  • Xml to ABAP internal table mapping and schema validation

    Hi Experts,
    I'm trying to get data from an xml file into internal tables in ABAP. My requirement is to validate xml against an xsd schema, how can i do it?
    My other question is, if there are any possible ways to map the fields of a table so that once the xml file is read, the fields automatically get populated depending on the different elements and attributes in the xml file.
    -joe

    Hi,
    check out :
    http://help.sap.com/saphelp_nw70/helpdata/en/fd/9d734b389211d596a200a0c94260a5/frameset.htm
    Terry

  • SAXException while parsing a well formed XML

    Hi all,
    I am getting SAXException while parsing even though my XML is well formed.
    It is written in the API that SAXException can be thrown for both error and warning. Is there any way to ignore the warnings coming while parsing and hence no SAXException is thrown.
    One more weird behavior I am getting is that when I catch the SAXException, it executes the catch block and after that control goes to the next line from where the exception was thrown, and that line is in try block itself. I'll show this with code example:
    1.     Try {
    2.        DocumentBuilder docBuild = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    3.        Document document = docBuild.parse( inputSrc );      //SAXException is thrown on this line
    4.        //Some code�
    5.     �
    6.     } catch (Exception e) {
    7.        System.out.println(�Exception while parsing: �+e.getMessage);
    8.     }
    9.     //Some Code�Ideally when SAXException is thrown on line 3, control should go to the line 7 and the to line 9 after the catch block. But in current senario control is going to line 4 after line 7. It is something very strange happening. My guess is, is it because of some property of SAXException, when thrown for warning?
    Any suggetion/advice in this regard will be helpful.
    Thanks in advance

    First: if an exception is happening, then your XML isn't well-formed. Look at the exception text and see what it's complaining about.
    As for why you're not catching the exception: a DocumentBuilder uses an ErrorHandler to handle the different warnings and errors. You can set your own ErrorHandler when parsing. The default (as documented in the link above) simply writes warnings and non-fatal errors to the console, and throws an exception only for fatal errors.

  • Using Oracle Paser for schema validation

    Hi,
    I am trying to use oracle parser for schema validation. I get hold of oracle parser using jaxp api. Below is the code snippet. When i set the attribute to turn the schema validation on, orale parser does not recognize this jaxp attribute . How can i do schema validation using oracle's xml parser implementaion that i get using jaxp?
    String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
    String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
    javax.xml.parsers.DocumentBuilderFactory factory = javax.xml.parsers.DocumentBuilderFactory.newInstance();
    factory.setValidating(validate);
    factory.setNamespaceAware(true);
    factory.setAttribute (JAXP_SCHEMA_LANGUAGE,W3C_XML_SCHEMA);
    javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder();
    Thanks

    DOMParser domParser=new DOMParser();
    domParser.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    domParser.setXMLSchema(SchemaUrl);
    DefaultHandler handler=new DefaultHandler();
    DOMParser.setErrorHandler(handler);
    Parse the XML document to validate with the XML schema.
    domParser.parse(XmlDocumentUrl);

  • XML validation error while parsing MXI Manifest

    Hi,
    I have created an hybrid extension for Photoshop. I want to upload my extension on Adobe Exchange. during the upload process I get an error,
    "XML validation error while parsing MXI Manifest: Declarations can only occur in the doctype declaration. Line: 19 Position: 791 Last 80 unconsumed characters".
    The error description specifies that description in MXI file is not valid. Below are the contents of my MXI file.
    <macromedia-extension
               name="yyy"
               id="com.yyy"
               version="1.0.0"
               type="object"
               requires-restart="true">
              <author name="abcd" />
              <products>
              <product familyname="Photoshop" maxversion="" primary="true" version="12.0"/>  
              </products>
    <description>
              <![CDATA[
    <p><font size="14" color="black"><b>abcd</b> qwertyuioipafgjhkjljljklkjl
    <br><br>
    Open Extension via: Photoshop top menu > Window > Extensions > abcd.
    <br><br>
    Online support at: <a href="http://www.abcd.com/help.php">http://www.abcd.com/help.php</a></font></p>
    <br>]]>
    </description>
    <ui-access>
              </ui-access>
    <license-agreement>
    </license-agreement>
    <files>
                <file destination="$ExtensionSpecificEMStore/com.abcd/html/abcd.html" products="" source="zxp-support/Description/abcd.html"/>
                <file destination="$ExtensionSpecificEMStore/com.abcd/html/abcd.png" products="" source="zxp-support/Description/abcd.png"/>
                <file destination="" file-type="CSXS" products="" source="abcd.zxp"/> 
                <file destination="$automate" file-type="plugin" platform="mac" products="Photoshop" source="mac/abcd.plugin"/>
                <file destination="$automate" file-type="plugin" platform="win" products="Photoshop32" source="win32/abcd.8li"/>
                <file destination="$automate" file-type="plugin" platform="win" products="Photoshop64" source="win64/abcd.8li"/>
    </files>
    </macromedia-extension>
    Can anyone please point out why am I getting the error?
    Thanks

    Hi CarlSun,
    Thanks for the reply. I have made the changes suggested by you.
    I have few queries:
    1.  Can we use attribute "source" in the description tag?
         I have created a local html page and specified it in source attribute. but the Extension Manager CS6 did not render the local html page and displayed      the following:
         No description avaliable. Click the following link for more details.
         "http://www.abcd.html". Is it possible to display a local html page in Extension Manager CS6?
    2. Can I display an image (png) in CDATA under description tag? If yes, then can you please guide me how can I do so?
    3. As suggested in tech notes MXI file must include UTF-8 encoding as header (<?xml version="1.0" encoding="UTF-8"?>). The MXI I am using does      not have this header. Do I need to include the header?
    Thanks

  • Persisting unexplained errors when parsing XML with schema validation

    Hi,
    I am trying to parse an XML file including XML schema validation. When I validate my .xml and .xsd in NetBeans 5.5 beta, I get not error. When I parse my XML in Java, I systematically get the following errors no matter what I try:
    i) Document root element "SQL_STATEMENT_LIST", must match DOCTYPE root "null".
    ii) Document is invalid: no grammar found.
    The code I use is the following:
    try {
    Document document;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(true);
    factory.setNamespaceAware(true);
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse( new File(PathToXml) );
    My XML is:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!-- Defining the SQL_STATEMENT_LIST element -->
    <xs:element name="SQL_STATEMENT_LIST" type= "SQL_STATEMENT_ITEM"/>
    <xs:complexType name="SQL_STATEMENT_ITEM">
    <xs:sequence>
    <xs:element name="SQL_SCRIPT" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <!-- Defining simple type ApplicationType with 3 possible values -->
    <xs:simpleType name="ApplicationType">
    <xs:restriction base="xs:string">
    <xs:enumeration value="DawningStreams"/>
    <xs:enumeration value="BaseResilience"/>
    <xs:enumeration value="BackBone"/>
    </xs:restriction>
    </xs:simpleType>
    <!-- Defining the SQL_SCRIPT element -->
    <xs:element name="SQL_SCRIPT" type= "SQL_STATEMENT"/>
    <xs:complexType name="SQL_STATEMENT">
    <xs:sequence>
    <xs:element name="NAME" type="xs:string"/>
    <xs:element name="TYPE" type="xs:string"/>
    <xs:element name="APPLICATION" type="ApplicationType"/>
    <xs:element name="SCRIPT" type="xs:string"/>
    <!-- Making sure the following element can occurs any number of times -->
    <xs:element name="FOLLOWS" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    and my XML is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Document : SQLStatements.xml
    Created on : 1 juillet 2006, 15:08
    Author : J�r�me Verstrynge
    Description:
    Purpose of the document follows.
    -->
    <SQL_STATEMENT_LIST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.dawningstreams.com/XML-Schemas/SQLStatements.xsd">
    <SQL_SCRIPT>
    <NAME>CREATE_PEERS_TABLE</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE CACHED TABLE PEERS (
    PEER_ID           VARCHAR(20) NOT NULL,
    PEER_KNOWN_AS      VARCHAR(30) DEFAULT ' ' ,
    PRIMARY KEY ( PEER_ID )
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>CREATE_COMMUNITIES_TABLE</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE CACHED TABLE COMMUNITIES (
    COMMUNITY_ID VARCHAR(20) NOT NULL,
    COMMUNITY_KNOWN_AS VARCHAR(25) DEFAULT ' ',
    PRIMARY KEY ( COMMUNITY_ID )
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>CREATE_COMMUNITY_MEMBERS_TABLE</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE CACHED TABLE COMMUNITY_MEMBERS (
    COMMUNITY_ID VARCHAR(20) NOT NULL,
    PEER_ID VARCHAR(20) NOT NULL,
    PRIMARY KEY ( COMMUNITY_ID, PEER_ID )
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>DROP_PEER_TABLE</NAME>
    <TYPE>DELETION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    DROP TABLE PEERS IF EXISTS
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>DROP_COMMUNITIES_TABLE</NAME>
    <TYPE>DELETION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    DROP TABLE COMMUNITIES IF EXISTS
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>DROP_COMMUNITY_MEMBERS_TABLE</NAME>
    <TYPE>DELETION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    DROP TABLE COMMUNITY_MEMBERS IF EXISTS
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>CREATE_COMMUNITY_MEMBERS_VIEW</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE VIEW COMMUNITY_MEMBERS_VW AS
    SELECT P.PEER_ID, P.PEER_KNOWN_AS, C.COMMUNITY_ID, C.COMMUNITY_KNOWN_AS
    FROM PEERS P, COMMUNITIES C, COMMUNITY_MEMBERS CM
    WHERE P.PEER_ID = CM.PEER_ID
    AND C.COMMUNITY_ID = CM.COMMUNITY_ID
    </SCRIPT>
    <FOLLOWS>CREATE_PEERS_TABLE</FOLLOWS>
    <FOLLOWS>CREATE_COMMUNITIES_TABLE</FOLLOWS>
    </SQL_SCRIPT>
    </SQL_STATEMENT_LIST>
    Any ideas? Thanks !!!
    J�r�me Verstrynge

    Hi,
    I found the solution in the following post:
    Validate xml with DOM - no grammar found
    Sep 17, 2003 10:58 AM
    The solution is to add a line of code when parsing:
    try {
    Document document;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(true);
    factory.setNamespaceAware(true);
    factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse( new File(PathToXml) );
    The errors are gone !!!
    J�r�me Verstrynge

  • Getting an Out of memory exception while validating XML against XSD

    Hello friends,
    I am getting an Out Of Memory exception while validating my XML against a given XSd which is huge.
    SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
            saxParserFactory.setValidating(true);
              SAXParser saxParser = saxParserFactory.newSAXParser();
             saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
             saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",new File("C:/todelxsd.xsd")); as u may see the darkened code. this basically Loads the XSD in Memmory , and JVM throws an out of Memory exception. is there any other way round of validating an XML against an XSD where i dont have to load my XSD if not then kindly let me know the solution for above problem .
    Thanks.

    Yes, but increasing the heap size is a temporary solution , isnt there a way where the XML can be validated against an XSD without having to load XSD in memory

  • Getting an out of memory exception while validating my XML against a XSD

    Hello friends,
    I have asked this question in following thread too. Pasting it again here just to saye your time
    http://forum.java.sun.com/thread.jspa?threadID=690812&tstart=0
    I am getting an Out Of Memory exception while validating my XML against a given XSd which is huge.
    SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
            saxParserFactory.setValidating(true);
              SAXParser saxParser = saxParserFactory.newSAXParser();
             saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
             saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",new File("C:/todelxsd.xsd")); as u may see the darkened code. this basically Loads the XSD in Memmory , and JVM throws an out of Memory exception. is there any other way round of validating an XML against an XSD where i dont have to load my XSD if not then kindly let me know the solution for above problem .
    Thanks.

    Yes, but increasing the heap size is a temporary solution , isnt there a way where the XML can be validated against an XSD without having to load XSD in memory

  • ORA-20100: Error occurred while parsing (from xml in custom schema)

    Hi,
    I am using xmlParser and xmlDom to extract information from xml document. My whole process works perfectly in the APPS schema on the Oracle e-Business Suite. The minute I move it to a custom schema (ie new User) I get this error.
    ORA-20100: Error occurred while parsing: Element '' used but not declared.
    This only occures at runtime. I am pretty sure I grant the correct SELECT and EXECUTE privileges to this Schema. If I hadn't then it would not compile. It compiles without errors on the Database.
    Any help will be appreciated.
    Thanks in advance.
    Regards
    Dave

    I just tried this again. I have Oracle9i 9.0.1.1 on my Windows
    2000 laptop.
    I went to OTN and downloaded the XDK 9.0.2D for PL/SQL
    I used loadjava to load the \oracle\ora90\rdbms\jlib\xdb_g.jar
    file into the database (shouldn't have had to do this) into the
    XMLBOOK account. Filed a bug for needing to do this by hand.
    I ran "xdkload.bat" with xmlbook/xmlbook as the username/password
    I made sure the proxy server name was set correctly in the
    example (if you don't need a proxy server, comment out that line
    in the parse_xml_news.sql example, or that could cause your
    error!!)
    I ran the parse_xml_news.sql script, and I get:
    Top Stories on XML from Moreover.com on December 21st, 2001
    ( 1) CEO highlights Mercator Softwares single biggest opportunity
    ( 2) WWRE Chooses webMethods
    ( 3) WebMethods, retail exchange ink deal
    ( 4) Worldwide Retail Exchange Chooses webMethods
    ( 5) Worldwide Retail Exchange Chooses webMethods
    ( 6) WorldWide Retail Exchange choses webMethods for integration
    ( 7) XML: Wherever You Go, There You Are
    ( 8) Chap. 13: Metadata
    ( 9) Enterprise Adoption of XML Made Simple
    (10) XML Databases
    (11) Using CSS2 to display XML documents
    (12) How XML could bring an end to all of your troubles
    (13) Effort Launched To Bring Classic Macs Rich Metadata To Mac
    (14) Sneak attack on Pearl Harbor roused publics anger, resolve
    (15) Drug dogs whiff worth $230,000
    (16) PORTLAND Police target
    (17) 11-year-old cant seem to get out of jury duty
    (18) Another casualty of war: Proposed waterfront museum
    (19) webMethods Establishes Sales Operations in Brussels
    (20) Using Emacs for XML documents
    (21) Gates: XML could be everything we dreamed...
    (22) XML: The end of all your troubles?
    (23) Java XML
    (24) Tool To Compare XML Files
    (25) Fairfax County Sends webMethods to School
    (26) webMethods Embraces Web Services
    (27) WebMethods Supports Web Services
    (28) Accessing metadata through Reflection
    (29) When format is foremost
    (30) Views from Abroad: XML Pipelines and Delta XML

  • Parse and output XML document while preserving attribute order

    QUESTION: How can I take in an element with attributes from an XML and output the same element and attributes while preserving the order of those attributes?
    The following code will parse and XML document and generate (practically) unchanged output. However, all attributes are ordered a-z
    Example: The following element
    <work_item_type work_item_db_site="0000000000000000" work_item_db_id="0" work_item_type_code="3" user_tag_ident="Step" name="Work Step" gmt_last_updated="2008-12-31T18:00:00.000000000" last_upd_db_site="0000000000000000" last_upd_db_id="0" rstat_type_code="1">
    </work_item_type>is output as:
    <work_item_type gmt_last_updated="2008-12-31T18:00:00.000000000" last_upd_db_id="0" last_upd_db_site="0000000000000000" name="Work Step" rstat_type_code="1" user_tag_ident="Step" work_item_db_id="0" work_item_db_site="0000000000000000" work_item_type_code="3">
    </work_item_type>As you may notice, there is no difference in these besides order of the attributes!
    I am convened that the problem is not in the stylesheet.xslt but if you are not then it is posted bellow.
    Please, someone help me out with this! I have a feeling the solution is simple
    The following take the XML from source.xml and outputs it to DEST_filename with attributes in a-z order
    Code:
    private void OutputFile(String DEST_filename, String style_filename){
         //StreamSource stylesheet = new StreamSource(style_filename);
         try{
              File dest_file = new File(DEST_filename);
              if(!dest_file.exists())
                  dest_file.createNewFile();
              TransformerFactory tranFactory = TransformerFactory.newInstance();
              Transformer aTransformer = tranFactory.newTransformer();
              aTransformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
              Source src = new DOMSource("source.xml");
              Result dest = new StreamResult(dest_file);
              aTransformer.transform(src, dest);
              System.out.println("Finished");
         catch(Exception e){
              System.err.print(e);
              System.exit(-1);
        }

    You can't. The reason is, the XML Recommendation explicitly says the order of attributes is not significant. Therefore conforming XML serializers won't treat it as if it were significant.
    If you have an environment where you think that the order of attributes is significant, your first step should be to reconsider. Possibly it isn't really significant and you are over-reaching in some way. Or possibly someone writing requirements is ignorant of this fact and the requirement can be discarded.
    Or possibly your output is being given to somebody else who has a defective parser which expects the attributes to be in a particular order. You could quote the XML Recommendation to those people but often XML bozos are resistant to change. If you're stuck writing for that parser then you'll have to apply some non-XML processing to your output to fix it up on their behalf.

  • I bought a song on itunes a while ago and I couldn't back up my ipod because I needed more storage. Once my ipod was updated, ALL of my memory was deleted (since it wasn't backed up) and I couldn't get my song back without paying for it again. Is there a

    I bought a song on itunes a while ago and I couldn’t back up my ipod because I needed more storage. Once my ipod was updated, ALL of my memory was deleted (since it wasn’t backed up) and I couldn't get my song back without paying for it again. Is there a way to retrieve it without paying for the second time?

    Just follow these instructions:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

Maybe you are looking for