Problem with schema processor

Hello,
I'm using the newest xml xdk (9.2.0.3.0) for windows. I have the following test example for the schema-processor
<?xml version="1.0" encoding="UTF-8"?>
<REPORT ID="4711" xmlns="http://www.oracle.com/REPORT" xmlns:COMOD="http://www.oracle.com/REPORT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/REPORT example.xsd">
<Module>
          <FELDA MODULE_ID="104">FELDA
               <FELDB MODULE_ID="4711">Test</FELDB>
          </FELDA>
          <FELDA MODULE_ID="105">hkfjdn
               <FELDC MODULE_ID="4811">test2</FELDC>
          </FELDA>
          <FELDA MODULE_ID="106">
               <FELDB MODULE_ID="4576">fhgjf</FELDB>
               <FELDC MODULE_ID="3457">tzdhs</FELDC>
               fhgjdfl
          </FELDA>
          <FELDA MODULE_ID="103">FELD_VALUE</FELDA>
</Module>
</REPORT>
and the corresponding xsd-file
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.oracle.com/REPORT" xmlns:REPORT="http://www.oracle.com/REPORT" elementFormDefault="qualified">
     <complexType name="FELDAType" mixed="true">
          <choice minOccurs="0" maxOccurs="unbounded">
               <element name="FELDB" type="REPORT:FELDBType"/>
               <element name="FELDC" type="REPORT:FELDCType"/>
          </choice>
          <attribute name="MODULE_ID" type="string" use="required"/>               
     </complexType>
     <complexType name="FELDBType">
          <simpleContent>
               <extension base="string">
                    <attribute name="MODULE_ID" type="string" use="required"/>
               </extension>
          </simpleContent>
     </complexType>
     <complexType name="FELDCType">
          <simpleContent>
               <extension base="string">
                    <attribute name="MODULE_ID" type="string" use="required"/>
               </extension>
          </simpleContent>
     </complexType>
     <complexType name="ModuleType">
          <sequence>
               <element name="FELDA" type="REPORT:FELDAType" minOccurs="1" maxOccurs="unbounded"/>
          </sequence>
     </complexType>
     <element name="REPORT">
          <complexType>
               <sequence>
                    <element name="Module" type="REPORT:ModuleType"/>
               </sequence>
               <attribute name="ID" type="string" use="required"/>
          </complexType>
     </element>
</schema>
The xml-spy 44 says everything is valid, but I got the following error using the schema test example xsdtest.cpp
In line 15 of example.xml:
LSX-00204: Extra data at end of complex element
LSX-00213: Only 0 occurance(s) of element "s", minimum is 1
Here is the xsdtest.cpp
// Copyright (c) Oracle Corporation 1999, 2000, 2001. All Rights Reserved.
// NAME          validate.c
// DESCRIPTION     Sample usage of C XML Schema processor
#include <iostream.h>
#include <string.h>
#ifndef ORAXML_CPP_ORACLE
# include <oraxml.hpp>
#endif
#ifndef ORAXSD_CPP_ORACLE
# include <oraxsd.hpp>
#endif
int main(int argc, char **argv)
XMLSchema schema;
XMLParser parser;
Element *root;
xmlctx *ctx;
char doc, uri;
uword ecode;
cout << "XML C++ Schema processor\n";
if ((argc < 2) || (argc > 3))
     cout << "usage: validate <xml document> [schema]\n";
     return -1;
doc = argv[1];
uri = (argc > 2) ? argv[2] : 0;
cout << "Initializing XML package...\n";
if (ecode = parser.xmlinit())
cout << "Failed to initialize XML parser, error " << ecode;
return 1;
cout << "Parsing '" << doc << "'...\n";
if (ecode = parser.xmlparse((oratext *) doc, (oratext *) 0,
                    XML_FLAG_DISCARD_WHITESPACE))
cout << "Parse failed, error " << ecode << "\n";
return 2;
cout << "Initializing Schema package...\n";
if (ecode = schema.initialize(&parser))
     cout << "Failed, code " << ecode << "!\n";
     return 3;
cout << "Validating document...\n";
root = parser.getDocumentElement();
if (ecode = schema.validate(root, (oratext *) uri))
cout << "Validation failed, error " << ecode << "\n";
schema.terminate();
return 4;
cout << "Document is valid.\n";
schema.terminate();
return 0;
Could you please help. There should be a problem with mixed content in a ComplexType or with the attribute minOccurs and maxOccurs at the choice element.
Thank you in advanced
R|diger Brand
ESG GmbH

I just installed the parser and schema and
it worked out of the bag for me.
I'm using Java 1.3.0 :
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
But, like the original poster, I wonder why
these samples use the old standard?
The readme doc says it conforms to the 2000/10 spec.
For grins I changed report.xml and report.xsd to now reference the 2000/10 namespaces and the parser runs but reports some errors. I guess that is OK, and that somebody just needs to update the schema itself to the new standards. Still, it makes me wonder...
Now, my problem is that I have an xml/xsd combo that it chokes on but that is another post.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Denali ([email protected]):
Hi Karin,
I copied report.xml and report.xsd from the context of your message body and tried them out. They both worked well with XSDSample and XSDSetSchema. The only difference, I guess, is that I am using IBM's jdk1.1.7. You might want to get a lower version of jdk, like 1.1.7 or 1.1.8 and try them out again.
The only problem I have is the data type of "date". It seems to me that all the date types of "date/time" have not been implemented by Oracle yet.
Cheers.
---Denali
<HR></BLOCKQUOTE>
null

Similar Messages

  • I have an iPhone 4 that is not holding charge and heating up.  I've been told it is a problem with the processor.

    I have an iphone 4 that is not holding charge and is heating up excessively.  I've been told that the iphone 4 is having problems with the processor and that it will soon die and there is no way to repair it.  I got my phone in CR through Kolbi / ICE which guarantees it only for a year.  I would like to know what Apple would like me to do.  i have not taken it in for rapair or anything in hopes that they will acknowledge that the phone is only a year old and would support it.
    Appreciate your help,
    Belkis Young

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    If the issue persists, take the device to Apple or the Apple Authorized Service Center in the country where the device was originally sold.  The warranty is not International.
    All iPhones come with a one year warranty when sold as new.

  • Problem with Image Processor  CS5

    From Bridge I use tools/photoshop/image processor and convert raw with xmp files to jpegs after entering description and keywords in Bridge File Info.  Suddenly, PS is not longer putting this information into the jpeg files.  Why?

    I'm beginning to think CS3 just isn't capable of handling long actions. Just to give you an idea what I'm doing is watermarking my photos with 3 items: a text logo, url and name. each of them consists of the same steps with the difference only being on their shape, size and position. so you can imagine 3 separate actions combine into 1. to test out my hypothesis, I deactivated 2 of them and tested for each one without any problem. next, I combined any 2 and failed. so my conclusion is CS3 just can't handle long actions as well as CS2.

  • Problem with Image Processor

    I usually use Image Processor to apply an action on tons of files on CS2. When I upgraded to CS3, I simply copied the actions over to the new action folder. Problem is, with long actions, CS3 doesn't close each file after it has performed the action unlike CS2, leaving the desktop filled with processed photos. Also a dialog box appear at the end with the message "Sorry, I could not process the following files:(list of files)". still, the processed files are saved in the destination folder. But here's the funny thing, when I run short actions, everything is ok.
    what could be wrong? I tried changing a few things in Image Processor dialog box but always get the same result. again, with shorter actions at the exact settings, the results are fine.

    I'm beginning to think CS3 just isn't capable of handling long actions. Just to give you an idea what I'm doing is watermarking my photos with 3 items: a text logo, url and name. each of them consists of the same steps with the difference only being on their shape, size and position. so you can imagine 3 separate actions combine into 1. to test out my hypothesis, I deactivated 2 of them and tested for each one without any problem. next, I combined any 2 and failed. so my conclusion is CS3 just can't handle long actions as well as CS2.

  • Problems with Image Processor in Bridge CS5

    I just installed Photoshop and Bridge CS5, and I'm having a couple of problems. First, I can't update to Bridge 4.02. I've downloaded the installer and tried to run it, but I get an error message. All it says is that it can't run the update. The same thing with the Camera Raw updater. The most immediate problem I'm having is that Image Processor in CS5 seems to run differently from how it runs in CS4. Specifically, if I select a bunch of files in Bridge, and ask Image Processor to run an action on them and save to the same location, which is what I've been doing ever since CS2, it opens the files in Photoshop, and leaves them open. This means that pretty soon I've got far too many fiiles open, and my Mac can't cope with it (an iMac Core Duo 2.16Ghz with 4 GB of ram). It also gives me an error message at the end saying it can't process the relevant files, even though it has processed them! In previous versions of Image Processor, it would open the files to run the action, convert to sRGB, etc. and then close each one after saving it to a new folder named "JPEG". How can I get the latest version to behave like this?

    Nevermind... I restarted Flash and it miragically appeared! Yay CS5!

  • Problem with Schema Definitions for Persintence Units

    Hello,
    Is there any way to explicitly specify SCHEMA types for the persistence units which are under use?
    Details:
    In our SOA application, we have to use two different data sources within a single business component. For that I have created my persintence.xml file with two persistence-unit definitions and is using @PersistenceContext(unitName="") to get an entity manager reference.
    Things were going smoothly until we had 2 different users for the respective database schema's.
    Now, as per the change request, I am supposed to use only one database user account, who is having only the read and modify privileges on both the database schema's. I would like to know, is there any way to explicitly specify the schema type for both of my persistence-units. I tried with the default-schema in orm.xml, but for both the data sources, that schema is getting referred. As a work around, currently I am using the SCHEMA attribute with all my @Table annotation of entity classes.
    Any input which will give insight to this problem will be appreciated.
    Thanks in advance,
    Regards,
    Dipu.

    orm.xml is the default mapping file for a persistence unit. Can you try specifying a separate mapping file where you define the default schema for your unit and reference it from the mapping-file element in the persistence.xml as follows:
    <mapping-file>META-INF/secondORMap.xml</mapping-file>     
    You can find a working example in the code examples (see chapter 11) of my book at http://manning.com/panda/. You can download from resources section.
    -Debu
    Author EJB 3 In Action - http://manning.com/panda/

  • Problems with my processor

    Tengo un procesador AMD 64 bits con MSI 8T, el problema viene que el equipo se reinicia cada dos por tres con windows xp, el código que muestra windows es el siguiente 0x0000007e (0xc0000005,0x805922ce,0xf8966f60,0xf8966c60). Gracias
    I have got a AMD Processor 64bits with MSI 8T MatherBoard, this problem is the windows 32bit XP is inestable, the code of error is 0x0000007e (0xc0000005,0x805922ce,0xf8966f60,0xf8966c60), thanks

    http://support.microsoft.com/default.aspx?scid=kb;en-us;330182
    The stop error is the same. The exact issue is mostly hidden in the section between brackets after the first comma. So it's not an exact answer but at least you know what to check first.
    "This article was previously published under Q330182
    SYMPTOMS
    After you upgrade your computer to Windows XP, you may receive the following STOP error message on a blue screen:
    STOP: 0x0000007E (0xC0000005, 0x804E518E, 0xFC938104, 0xFC937E04)
    SYSTEM_THREAD_EXCEPTION_NOT_HANDLED
    Note The four parameters in this error message may vary depending on the cause of the STOP error.
    CAUSE
    This issue may occur if a system thread generates an exception that the error handler does not catch. This may occur if one or more of the following conditions exist:
    Not enough hard disk space. If this issue occurs after the first restart during Windows Setup, or after Setup is finished, the computer may not have enough available hard disk space on which to run Windows.
    BIOS incompatibilities. If this issue occurs after the first restart during Windows Setup, or after Setup is complete, the computer BIOS may be incompatible with Windows.
    Incompatible video adapter drivers.
    Damaged Random Access Memory (RAM).
    A damaged device driver or system service.
    An incompatible third-party remote control program. If the issue is associated with the Win32k.sys file, it may be caused by a third-party remote control program.
    RESOLUTION
    To troubleshoot this issue, use the following methods.
    Method 1: Make Sure That There Is Enough Hard Disk Space
    Method 2: Update the Computer BIOS
    Method 3: Disable or Update Device Drivers
    Method 4: Remove Unsigned Drivers
    Method 5: Remove All Third-Party Drivers
    Frankly this is just a search on online technet. http://www.microsoft.com/technet  
    And if you can change topic title. It's rather annoying that you blame the processor when you don't even know what's causing it  
    I'd check RAM first. As an IT-engineer if never had any issue where the processor was to blame. So IMO last thing to look at.  

  • Problems with the processor , fan , and energy consumption

    Hello .
    Well , for some reason , my two years old laptop started to behave in a weird way . I just ignored the slight slowdown with the boot because I believe it's to be expected with any machine but that's not the issue . Aside from the annoying fact that Windows 7 doesn't seem to make full use of the RAM and thus it only uses HALF - yes , HALF - of my 6 GB RAM , my PC seems to slow down regulary while I browse the internet . I recently knew about the task manager and decided to take a look to be shocked at how much RAM Firefox and Google Chrome use . Along with other necessary system tasks - which almost don't count - , they alone take 30% of the RAM capacity . That's unfortuenately isn't the issue either because I can close any of them when I want to work on other stuff . The issue here is that for no apparent reason , my processor seems to work harder than is necesarry even when the programs I see in the task manager don't need 5% of it's full potential ! With such work it heats up . On Toshiba Health Monitor I see it going to 70-75% in heat and the fan kicks up to 85% to cool it down . Of course , that leads to rapid power consumption that can suddenly shoot from 17% to terrible 60% with ABSOLUTELY NO PROGRAMMS CURRENTLY AT WORK ASIDE FROM WINDOW EXPLORER .
    The good thing is that it doesn't happen all the time but it still worries me . Any ideas ?

    See my post on your other thread to obtain your model and part numbers. It's difficult to discuss your unit's use of RAM and other problems without that info.
    Mike

  • Funny problem with schema pattern regular expression

    I have following element in my schema:
    <xsd:element name="lD">
         <xsd:simpleType>
              <xsd:restriction base="xsd:string">
                   <xsd:pattern value="\d{5,8}" />
              </xsd:restriction>
         </xsd:simpleType>
    </xsd:element>then in the XML, I have:
    <ID>
    123456789
    </ID>funny thing is the schema validates the value successfully. seems the upper bound of 8 the in the regular expression does not have any effect. however, 1234 would fail.
    i looked up the schema prime on W3C, it specifies that {n,m} means at least n and at most m.
    any idea anyone?
    I have using Xerces 1.4.4.
    Thanks

    I tried the example you mentioned and it seemed to
    work for me. It validated both the upper bound and
    the lower bound. Looking at the Manifest file in
    xerces jar, it looks like I have version 2.5.0yes, I know. Xerces 2 works, but Xerces 1 has the above problem. If you get Xerces 1.4.4 from xml.apache.org, you will see the problem.
    I can not use Xerces 2 in our production environment yet.

  • Problem with image processor - photoshop cs6

    Hi there .
    I am trying to automate - image processor. From open files i am just trying to save theese pdf's as jpg's. Should be straight forward but I get this error...
    "There were no source files that could be opened by Photoshop."
    Anyone know why? I saw one google someone suggesting to reset the preferences or someting but I so not know how to do this or if it will help...
    thanks.

    It look like both the Image Processor script and the Image Processor Pro script will not process open document that have no associated backing file.  When you open a PDF file and use options for Photoshop to use opening the PDF the documents that open are new document the source PDF files have been processes into a new documents that have not been saved so the open document has no associated backing file.
    I mad a simple test. Opened a PDF. Tried the two scripts they failed. Then I saved the open document and the ran the Image processor on the still open document that had been saved as a tif.  The image processor worked and saved a jpg.
    It may be possible to write a small script to save open Document as jpeg files and close the open documents or loop around the open document ring and just save document that have no backing file.
    You could also try using Paul Riggott PDF Processor script to do it all....

  • Severe problem with 'Drill to Related' using drill icon

    Hi
    I have a severe problem with 'Drill to Related' in Discoverer Plus (10.1.2.54.25) using the drill icon of a worksheet:
    1. Though existing no items to drill to are shown in the context menu (or pop-up list), instead it says just 'Drill to Related...'
    2. Clicking on menue item 'Drill to Related...' results in 50% processor load (permanent) and no further update of the browser window (IE 7.0.5730.11) containig Discoverer Plus. There is no recovery of that state within about 20 minutes.
    This behaviour is both highly reproducible and annoying.
    When using the drill dialog instead of the icon the expected items are shown and 'Drill to Related' works fine. Although that is a workaround I don't think it acceptable to tell the end-users to use it.
    I searched metalink for a hint but couldn't find anything.
    Can anyone help?
    Franziska

    Hi S
    This seems to be a bug that was fixed earlier since we didn't experience it having applied cumulative patch 3 earlier.
    Something might be said about your problem in Metalink
    Doc ID: Note:422575.1
    Subject: Drilling With Discoverer Viewer 10g (10.1.2) Using Internet Explorer 7 (IE7) Fails With Javascript Error
    We still had to apply the patch for the bug I mentioned earlier in this thread in order to be able to see and select an item to drill to. Unfortunately the problem with the processor load up to 50% and nothing happening is still there.
    By the way IE 7 is certified now according to the Oracle certification information.
    Hope this helps
    Franziska

  • [SOLVED] Problem with net install cd

    Trying to install Arch on an old Asus P4BGL-MX board which is proprietary, probably something HP.  I have had no problems using the net install CD on 3 other Asus boards.  What happens is the install process starts (booting the kernel) and then halts with the screen black and the computer hung.
    The last line before black screen is:  [13.34178412] ACPI: Invalid PBLK length [5]
    ==>> I think problem solved, but I don't understand it.  The board has on board Intel graphics, but I had an ATI PCI card installed with bios set for it.  Took it out and now the install goes as it should.  I'm marking this post as solved, but if anyone could shed some light on this, it would be appreciated.
    Last edited by Ron74 (2012-01-02 19:46:25)

    This says:
    Colin King wrote:The warning is because of a problem with the Processor declaration in the _PR root namespace of your ACPI DSDT:
        Scope (\_PR)
            Processor (\_PR.CPU0, 0x00, 0x0000E410, 0x05) {}
            Processor (\_PR.CPU1, 0x01, 0x00000000, 0x00) {}
    The syntax of the Processor declaration is as follows:
    Processor (ProcessorName, ProcessorID, PBlockAddress, PblockLength)
    Section 18.5.93 of the ACPI specification states that the PBlockLength is the length of the processor register block, in bytes and is either 0 (for no P_BLK) or 6. In your case, the it's been set to 0x05 in the first Processor declaration which is definetly not compliant with the specification, hence the kernel warning message. The ACPI specification can be downloaded from http://www.acpi.info/DOWNLOADS/ACPIspec40.pdf if your are interested in the details.
    As it is, this is not a kernel bug, but a warning from the kernel that your BIOS is buggy and needs fixing. I suggest informing the manufacturer so that they can fix the BIOS.

  • Problem with Mac graphics card (radeon 5750) and PP?

    I've had Apple try to solve the sluggish scrubbing and editing problem in Premiere Pro CS6 on my iMac (i7 2.93GH with 12 GB RAM). They have replaced the internal disk, the logic board, and 5750 processor, all with no solution. What's the solution?
    Is there an unsolvable problem with this processor and Premiere Pro?
    dmingo

    Welcome to the forums, and congratulations on your excellent English usage and grammar.
    The usual cause of video problems in these iMacs is something called the PAV board. The graphics cards themselves are seldom an issue. The board can be replaced as a unit, and is usually available on eBay as a iMac PAV board or Down Converter.
    It's not a normal user replacable item. Although some posters here do it regularly, I don't. I find it more efficient to buy another unit off eBay. Often the used iMacs are nearly the same price as the PAV boards.
    Takeapart for swapping drives - slot load is a series of pictures that will help if you need to open the machine.
    David

  • Problem with running sample code from XML Schema Processor for Java

    Hi there,
    I downloaded the XML Schema Processor for Java and tried it out. Unfortunately, it failed at the first step. FYI, I included all xmlparserv2.jar and xmlschema.jar in my classpath.
    I compiled XSDSample.java with a warning: XSDSample.java uses a deprecated API. Recompile with "-deprecation" for details. There was no problem with compiling XSDSetSchema.java.
    When I tried to run report.xml by typing java XSDSample report.xml, I got Parsing report.xml
    NonParserException: null.
    I guess that report.xml from the sample is not valid.
    Could any one give me a hint? Any suggestion would be greatly appreciated.
    ---Denali
    null

    Please post this message at:
    Forums Home » Oracle Technology Network (OTN) » Products » Database » XML DB

  • My problems with Oracle Schema Processor for C++ :(

    Dear ;) Oracle XML team and others,
    the followings are really inconvenient with the C++ schema processor:
    -it doesn't even support the Candidate
    Recommendation (OK, the Java version does
    support it, and you can use XSU and upgrade your schemas later when the C++ will also
    support it.)
    -you cannot put comments in the schema, just after the <xsd:schema> element.
    -it's checking the attribute use="required"
    when an attribute is declared in a
    complexType, but it doesn't check
    when an attribute is referenced or, which could be much more useful, when an
    attributegroup is referenced, and it contains
    use attributes. (I tried XMLSpy and it was correct. But I need an API or a C++ tool.)
    I'm really awaiting this schema processor to be updated (maybe on April 14 the W3C Schema recommendation ;))
    -it supports "import" but I had problems with "include" (this looked like a bug, but after I'd posted it, noone replied :(. Maybe because the C++ processor is kind of "obsolete")
    Will the C++ version be updated? (When?)
    I cannot use Java because I try to integrate with a C++ application. I was looking for
    other products, but I only found XSV, Java XSD processors and built-in tools. It's quite sad that there isn't a C++ implementation available. :( Can anyone help me?
    Tamas
    null

    Originally posted by Tamas >Marcinkovics ([email protected]):
    Dear ;) Oracle XML team and others,
    -you cannot put comments in the schema, just >after the <xsd:schema> element.I tried the following:
    <?xml version="1.0"?>
    <schema
    xmlns = "http://www.w3.org/1999/XMLSchema"
    targetNamespace = "http://www.CarDealers.com/">
    <!-- this should fail -->
    <element name="Car">
    </element>
    </schema>
    and it works!
    Can you provide some examples?
    Thx!
    null

Maybe you are looking for