Error with DTD duplicated SYSTEM inclusion

I'm working with one of the latest releases
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
"CORE     11.2.0.1.0     Production"
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
I'm trying to insert xml into an XMLType table, and validate it with a DTD. To achieve this i created a folder /xmlmine/dtd and applied this acl to it
<acl description="dilbertacl" xmlns="http://xmlns.oracle.com/xdb/acl.xsd" xmlns:dav="DAV:" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/xdb/acl.xsd                                    http://xmlns.oracle.com/xdb/acl.xsd" shared="true">
      <ace>
        <grant>true</grant>
        <principal>DILBERT</principal>
        <privilege>
          <dav:all/>
        </privilege>
      </ace>
    </acl>i then uploaded this dtd to play.dtd with
DECLARE
  b BOOLEAN;
BEGIN
  b := DBMS_XDB.createResource('/xmlmine/dtd/play.dtd',bfilename('dtds', 'play.dtd'));
END;and i can see it with
select xdburitype('/xmlmine/dtd/play.dtd').getCLOB() from dual;
<!-- DTD for Shakespeare    J. Bosak    1994.03.01, 1997.01.02 -->
<!-- Revised for case sensitivity 1997.09.10 -->
<!-- Revised for XML 1.0 conformity 1998.01.27 (thanks to Eve Maler) -->
<!ENTITY amp "&#38;">
<!ELEMENT PLAY     (TITLE, FM, PERSONAE, SCNDESCR, PLAYSUBT, INDUCT?, PROLOGUE?, ACT+, EPILOGUE?)>
<!ELEMENT TITLE    (#PCDATA)>
<!ELEMENT FM       (P+)>
<!ELEMENT P        (#PCDATA)>
<!ELEMENT PERSONAE (TITLE, (PERSONA | PGROUP)+)>
<!ELEMENT PGROUP   (PERSONA+, GRPDESCR)>
<!ELEMENT PERSONA  (#PCDATA)>
<!ELEMENT GRPDESCR (#PCDATA)>
<!ELEMENT SCNDESCR (#PCDATA)>
<!ELEMENT PLAYSUBT (#PCDATA)>
<!ELEMENT INDUCT   (TITLE, SUBTITLE*, (SCENE+|(SPEECH|STAGEDIR|SUBHEAD)+))>
<!ELEMENT ACT      (TITLE, SUBTITLE*, PROLOGUE?, SCENE+, EPILOGUE?)>
<!ELEMENT SCENE    (TITLE, SUBTITLE*, (SPEECH | STAGEDIR | SUBHEAD)+)>
<!ELEMENT PROLOGUE (TITLE, SUBTITLE*, (STAGEDIR | SPEECH)+)>
<!ELEMENT EPILOGUE (TITLE, SUBTITLE*, (STAGEDIR | SPEECH)+)>
<!ELEMENT SPEECH   (SPEAKER+, (LINE | STAGEDIR | SUBHEAD)+)>
<!ELEMENT SPEAKER  (#PCDATA)>
<!ELEMENT LINE     (#PCDATA | STAGEDIR)*>
<!ELEMENT STAGEDIR (#PCDATA)>
<!ELEMENT SUBTITLE (#PCDATA)>
<!ELEMENT SUBHEAD  (#PCDATA)>when i proceed to insert with
INSERT INTO sestable VALUES (XMLType(bfilename('xmls', 'all_well.xml'),nls_charset_id('AL32UTF8')));the top of the xml document looks like
<?xml version="1.0" encoding="WINDOWS-1252"?>
<!DOCTYPE PLAY SYSTEM "/xmlmine/dtd/play.dtd" [
<!ELEMENT PLAY (TITLE, FM, PERSONAE, SCNDESCR, PLAYSUBT, INDUCT?, PROLOGUE?, ACT+, EPILOGUE?)>
<!ELEMENT TITLE (#PCDATA)>
<!ELEMENT FM (P+)>
<!ELEMENT SUBTITLE (#PCDATA)>
<!ELEMENT SUBHEAD (#PCDATA)>
]>
<!-- DTD for Shakespeare    J. Bosak    1994.03.01, 1997.01.02 -->
<!-- Revised for case sensitivity 1997.09.10 -->
<!-- Revised for XML 1.0 conformity 1998.01.27 (thanks to Eve Maler) -->
<PLAY>
  <TITLE>All&apos;s Well That Ends Well</TITLE>
  <FM>
    <P>Text placed in the public domain by Moby Lexical Tools, 1992.</P>
      <STAGEDIR>Exeunt</STAGEDIR>
    </EPILOGUE>
  </ACT>
</PLAY>but when i try to query the table with something like
select xtab.COLUMN_VALUE
from sestable, XMLTable('let $i := /PLAY/ACT/SCENE/SPEECH[SPEAKER eq "DUKE"]/LINE
                return count($i)' PASSING OBJECT_VALUE) xtab;i get an error
LPX-00107:Warning: element "PLAY" has multiple declaration
if i remove the SYSTEM keyword and simply inline the DTD everything works just fine.
I suspect the parser is inlining the DTD but not removing the SYSTEM directive, thus including the DTD twice, hence the error. Any suggestion on how to solve this?
Thanks in advance

What should I do now, since binary XML does not seems to validate? Is there any other way to validate the XML document with a DTD besides directly copying and pasting the DTD in the file?Well, as a workaround, you can disable DTD validation after the document has been inserted in the table.
SQL> select storage_type from user_xml_tables where table_name = 'PLAYS2';
STORAGE_TYPE
CLOB
SQL> SELECT count(*)
  2  FROM plays2 p
  3     , XMLTable( '/PLAY/ACT/SCENE/SPEECH[SPEAKER eq "DUKE"]/LINE'
  4                 passing p.object_value ) x
  5  WHERE XMLExists( '/PLAY[TITLE=$title]'
  6                   passing p.object_value
  7                        , 'All''s Well That Ends Well' as "title" )
  8  ;
SELECT count(*)
ERROR at line 1:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00107: Warning: element "PLAY" has multiple declarations
Error at line 24
Error at line 7
SQL> alter session set events '31156 trace name context forever, level 2';
Session altered.
SQL> SELECT count(*)
  2  FROM plays2 p
  3     , XMLTable( '/PLAY/ACT/SCENE/SPEECH[SPEAKER eq "DUKE"]/LINE'
  4                 passing p.object_value ) x
  5  WHERE XMLExists( '/PLAY[TITLE=$title]'
  6                   passing p.object_value
  7                        , 'All''s Well That Ends Well' as "title" )
  8  ;
  COUNT(*)
        19
If this is a bug should I report it or you can do / have already done that?I didn't see anything in the documentation regarding DTD validation vs. binary XML, so yes I think you should report it to Oracle Support.

Similar Messages

  • COMMUNICATION ERROR WITH EXTERNAL TAXATION SYSTEM - VERTEX_MS0018

    When  I copied US company code 3000 to my org using USD as currency code with a  a view to simulate US  scenarios it threw an error as under.
    The error occurred when I  was trying to fill in the address tab after copying the  company code.
    <b>
    COMMUNICATION ERROR WITH EXTERNAL TAXATION SYSTEM - VERTEX_MS0018</b>.
    Thank you and regards,
    Ram

    Hi Ram Shiva,
    Deactivate External tax
    Path:SPRO>Financial Accounting>Financial Accounting Global Settings>Tax on Sales/Purchases>Basic Settings>External Tax Calculation>Activate External Tax Calculation
    Hope this will solve
    Best Regards
    Ashish Jain

  • Strange error with authentication after system update

    After a system update i get this strange thing in authentication.
    see image:
    Can anyone tell me what's this? Is this a virus?
    Thanks

    That is not a virus. That's a font problem, most likely a corrupt font cache. Try restarting in safe mode, then restart normally. (This will clear some of the font caches, among other things.)
    If that doesn't fix it, try some of the other fixes mentioned here:
    https://discussions.apple.com/thread/3273445?start=0&tstart=0

  • Problem with DMGs and error: "No Mountable File Systems"

    Problem with DMGs and error: "No Mountable File Systems"
    The files are not corrupt. The problem is occurring with all DMGs that are apparently formatted in MS-DOS FAT16. No the file will not mount with Disk utility or any other disk mounter programs I have found.
    This is now the second time this occurred and now effects my MBP and my iMac. First time i spent days with Apple support and the only solution was ultimately back up the data, reformat the HD, start over from scratch and reload everything. That lasted about a month before the problem resurfaced and is now an issue on both iMac and MBP.
    I tried to identify all the programs I installed immediately before the error, as I am convinced it is the result of a software conflict.
    Recent programs includes:
    1) upgrading from Parallels 5.5 to 6.0 on both machines.
    2) using an HP secure II usb drive and setting up a secure disk.
    3) installing new itunes 10
    4) new update to Flip For Mac.
    The files affected are downloaded dmgs, including personal brain and google earth, both which are formatted in FAT16.
    Any help or thoughts? Apple has now spent hours trying and they say i now have to reformat and wipe and start over. That is unacceptable and based on pasted experience the problem is likely to repeat itself. having to wipe and rebuild a HD ever month is not an solution. i need to fid the root problem.
    In the meantime, anyone got a real solution on how to extract the data for a DMG using a different method?
    Message was edited by: remaia

    Where you able to find the solution, i am having the same problem, all was fine till i install some programs only same one i saw did we both did was flip4mac i uninstalled it but the problem is still there, i also restored and erased the hardrive but im not up to doing that all over again. If you found anything out let me know i would greatly appreciate it

  • "ink system failure" error with code oxc19e0023 on a HP Photosmart Premium All-in-One Printer - C309

    "ink system failure" error with code oxc19e0023 on have a HP Photosmart Premium All-in-One Printer - C309g  - Have done all the resets and reseated the ink also tried replacing ink with new HP carts..getting frustrated please help
    This question was solved.
    View Solution.

    Have you tried the steps outlined in this article:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03081973&cc=us&dlc=en&lc=en
    If not give the steps a try and let us know if it helps.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • The user '*' preference item in the 'User - 6th Form Students Policy {E03166E7-A848-48B5-AA93-97B848AA9C13}' Group Policy object did not apply because it failed with error code '0x80070003 The system cannot find the path specified.' This error was suppres

    I am looking at an issue with users not getting specific group policies. 
    After searching a number of client computers I found that the following error
    The user '*' preference item in the 'User - 6th Form Students Policy {E03166E7-A848-48B5-AA93-97B848AA9C13}' Group Policy object did not apply because it failed with error code '0x80070003 The system cannot find the path specified.' This error was suppressed.
    I can find the folder in the Sysvol folder on all of the domain controllers. 
    The issue with end users seems to be that the proxy settings for internet explorer is not being applied. 
    Potential problems?
    one folder in sysvol entry is empty 
    \\<server>\SYSVOL\<domain.name>\Policies\{E03166E7-A848-48B5-AA93-97B848AA9C13}\User\microsoft\IEAK\LOCK
    or is this our issue
    The old method of configuring proxy settings  to Internet Explorer 9 has changed?
    https://support2.microsoft.com/kb/2530309?wa=wsignin1.0 
    http://thommck.wordpress.com/2013/11/08/the-new-way-to-configure-internet-explorer-proxy-settings-with-group-policy/

    Hi all 
    In administering this policy I am a little confused. 
    We have a policy that distributes proxy settings in the internet explorer maintenance settings section - however when opening this policy up in GPO editor the internet explorer maintenance section is not present.
    I plan to apply the settings via User/preferences/control panel settings/ internet settings (or registry settings from article) however I am unable to edit the settings for internet explorer maintenance and these will persist. Ideas????

  • How do I overcome error 150:30 with a replacement system hard drive on a Mac Pro?

    I have replaced my system hard disk drive on a Mac Pro and used Mac 'Restore' to restore the complete system from a Time Machine backup. Everything else works correctly, except my current Adobe products (InDesign CS4 and Photoshop CS4) both give a licensing error code 150:30 and each suggest contacting Adobe technical support.
    Can you help?
    Blair Cramond 

    Thanks for your reply. Is it necessary to uninstal the existing CS4
    products before re-installing?
    Ned Murphy <mailto:[email protected]>
    5 May 2014 13:14
    >
          How do I overcome error 150:30 with a replacement system hard
          drive on a Mac Pro?
    created by Ned Murphy <https://forums.adobe.com/people/Ned+Murphy> in
    /Downloading, Installing, Setting Up/ - View the full discussion
    <https://forums.adobe.com/message/6354088#6354088>

  • I ran an iTunes update.  It failed with the message  System Error.  The program can't start because MSVCR80.DLL is missing from your computer.  Try reinstalling the program to fix this problem.   I tried reinstalling but get the same message.

    I ran an iTunes update.  It failed with the message  "System Error.  The program can't start because MSVCR80.DLL is missing from your computer.  Try reinstalling the program to fix this problem."   I tried reinstalling but get the same message.  I looked in my Recycle Bin for that file name but there is none there.  Is this a new file that iTunes wants?

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99683)

  • Error with Transport system not configured that may be related to CHaRM

    Who has in depth knowledge on setting up SAP Solution Manager CHaRM. Had an odd problem with the transport system failing when the QA system was shut down for maintenance. Transports were not able to be created or save to.  Error message was Transport System not configured.  Brought up QA and re-distributed system and Transport group and transport requests started working again.

    Hello,
    if a system, e.g. QA system, will not be available due to a maintenance task,
    we set the status of this system to "temporarily inactive" (see header data in transaction SMSY).
    This status allows us, to create new transport requests in DEV-System although consolidation system QA is not available.
    (Of course you have to reset the status, when QA-system ist started again.)
    Hint: it is not possible to release or to import a transport request, when consolidation system is shut down.
    Therefore the developer should pay attention to the messages, which raise in urgent corrections.
    best regards
    Horst

  • "An error occured with the AppleShare system"

    Hi,
    I'm running a shell script that fetchs files on an ftp server each 5 minutes. When an item is available it's copied on an AFP Server (AppleShare IP v6 or Windows 2000 depending of the name of the file). The shell script also check for the shares to be mounted and if not mount them. I also use an AppleScript (on idle) to dispatch the files in folders on the shares.
    All runs perfectly but sometime - may be once or twice a day or once per week - the message An error occures with the AppleShare system (this is my translation of the french message Une erreur est survenue avec le système AppleShare) is displayed on the Finder preventing the AppleScript to do its work.
    Any idea of how to resolve the problem or to trap it in the AppleScript ?
    Regards,
    Didier from France.
    PowerMac G4   Mac OS X (10.3.9)  

    solved upgrading to Ma

  • MacBookPro SSD Error- ALERT: The partition map needs to be repaired because there's a problem with the EFI system partition's file system.

    MacBook Pro OS x Mavericks. I have Sandisk 256GB SSD and I am getting a below error message.
    ALERT: The partition map needs to be repaired because there's a problem with the EFI system partition's file system.
    Does anyone know how to resolve this error and fix it ? unfortunately I don't have a Time Machine backup. Thanks!

    Have you tried to run the verify/repair permissions and verify/repair disk through the recovery disk? If that didn't work then I would reinstall the OS after backing up. If that still doesn't work I would take it in.

  • Error with Logical System - Long SID - SOLAR01

    Hello,
    We are using Solman Ehp1, stack 25.  We have a problem in using Long SID (same SID) in Solar01
    We are creating a new system in the landscape of a project.  There was a copy of production system (called PCA) into a sandbox system keeping the same SID for both system PCA
    We define a new product system in SMSY and we use a new long SID so that it is called PCAP.  This new system recovered the logical system definition for each client which is the same for both PCA and PCAP system.  Then we create RFCs for the new PCAP long id, no problem.
    Finally we add the new system to the Logical Component Z_ERP with a new role 2 Sandbox system.
    We went to the project SOLAR_PROJECT_ADMIN and assign the new system role 2 so that is available to use it in some test.
    We go to transaction SOLAR01, switch to the new system role 2, and try to execute any transaction in the new server, it is saying that there is no logical system assigned to PCAP.... which is true, since the logical system is called PCAxxxxx.
    Can you help us with that?
    Regards
    Esteban Hartzstein

    Hello Fabricius,
    What I did is add the new PCAP system to the current Logical Component with the new system role Sandbox test  so that they can perfomed some tests on that role.  This system is a complete copy of the original PCA system, so internally everything is PCAP, and since I cannot have same SID in SMSY, I created as PCAP.  And that causes a problem with the Logical System definition.
    The actual error message is
    smsy_ppms_api044
    This error message was reported in another post back in 2009
    LIink: Error getting RFC destination for logical system SMD XXX
    Any ideas?? Help required
    Regards
    Esteban
    Edited by: Esteban Hartzstein on Oct 27, 2011 10:00 AM

  • " SYSTEM ERROR" with ERROR CATEGORY: Message and ERROR ID : GENERAL

    HI all
    I m doing JDBC -> XI -> SOAP -> XI -> FILE ( XML) scenario .I have implemented it using  BPM .
    But ,In MONI , i am getting a "SYSTEM ERROR " with "ERROR CATEGORY : MESSAGE" and "ERROR ID : GENERAL" .and 
    One thing more is there my all adapters are active (JDBC,FILE) in runtime workbench but SOAP adapters i am not able to see it there as its services are not defined in there .Is this problem is because SOAP adapters are not defined in runtime workbench ?

    Hi Colin
    I are using SP 3.0
    I have checked the Communication channel monitoring and Adapter monitering also but in mine case when i want to see the SOAP adapter in adapter monitoring , the SOAP ICON is disabled there ,so i am not able to see whats the status of my SOAP adapter i have used in my scenario
    Thanks and Regards
    Abhishek

  • Installation of Firefox failing with a 7-Zip Error Box stating "The System Cannot find the File Specified"

    When I upgraded to the latest Firefox on my Windows 7 PC , I get a 7-Zip Error Box stating " The System cannot find the file specified". This happens approximately two thirds into the installation. I have tried turning the Virus checker off and re-installing, but to no avail.

    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/
    Try this:
    *Download the full Firefox installer and save the file to the desktop<br>https://www.mozilla.org/en-US/firefox/all/
    *Start the installation with a double-click on the desktop icon
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    *https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware

  • Flash CS6 AIR error: CreateWinProcess failed with error 2. The system cannot find the file specified

    I created an AIR application in Adobe Flash CS6, but when I test, debug or publish it, an error always occured.
    CreateWinProcess failed with error 2. The system cannot find the file specified.
    When I clicked OK, Flash suddenly stops responding, so I need to end the process using Task Manager.
    I created a blank FLA document and tested and published it, everything's fine there. It was exported properly. But when I do it with the AIR app, Flash can't even start exporting the SWF of the AIP app, and instead gave me the error.
    I speculate that there is something wrong with the Java command line stuff Flash is doing behind the curtain. I tried using ADL myself and get the AIR app working fine.
    I also found out that Flash has its own JRE installed, so I don't have to bother the JRE used by my computer.
    Is there any way to fix this? Thanks in advance. Have a nice day!

    I installed  the update, but I'm sorry to say that it did not solve the problem
    The error is still there as described by Master §ix and Daniel777
    CreateWinProcess failed with error 2. The system cannot find the file specified.
    It happens when trying to test, debug, or publish air applications (AIR 2.5 – AIR 3.4 , desktop, android, iOS)
    In this case, I can't use the simulator to test the applications,
    thanks

Maybe you are looking for

  • Differences between 7 and 3.x

    Hello, I am looking for a whitepaper/SAP documentation that talks about differences between BI 7.0 and BI 3.x especially Bex reporting. I searched through forums several times but I was not able to answer my question. I found some helpful links but i

  • Foriegn Currency Transactions

    Hi Experts Please anybody help me is it possible of updating of  exchange rate fluctuations automatically by system. Regards Jyo

  • Blocked Plug-in message

    I am operating on OSX10.6.8. After a recent update of software, perhaps of Adobe Flash, I get a message whenever I want to use Adobe Flash which says "Blocked Plug-in". I have the latest version of Adobe Flash that I can download. What else can I do?

  • Wrong number of arguments for a setcolor operator

    Does anyone know what the above message means? I saved a pages document as a .pdf file and when the person I emailed it to tried to open it he got the above message. He has been able to open previous files I have sent.

  • Export metadata using report script/data export

    Hi all, I have a cube with 3 dimensions: 1. Accounts 2. Period 3. Products My purpose is to create a txt file using report script (if someone have a better idea I'm willing to hear) as following: Accounts (level 0), Period (level 0), Products(level 0