DTD checking-can it be prevented

Hi All,
I want to parse an xml file stored as a clob coloumn(in a database)with a doctype declaration.Now the problem is with the doctype declaration.I don't want the parser to validate based on this doctype declaration(for this i set the setvalidation mode of the parser to false,which is fine)or even check for the existence of this dtd file when the validation mode is false.Is this possible?.Now when i tried this the parser gave me an error :
ORA-20100: Error occurred while parsing: No such file or directory
ORA-06512: at "SYS.XMLPARSER", line 22
ORA-06512: at "SYS.XMLPARSER", line 93
ORA-06512: at "IWADM.CREATEDOCMEMORYCLOB", line 7
ORA-06512: at line 10
which means that the parser is checking for the existance of the dtd file(when the validation mode is set to false).
I feel a work around can be achieved in the following way,any suggestions on this is appreciated.
1) get the doctype, before parsing,store it,make the the doctype declaration null and then call the parser to parse the file(here the parser shouldn't report an error)
2) after manipulating the dom document,use the setdoctype to set the doctype of this document and then call the writetofile method of the dom document package to generate the file.
( help on getdoctype and setdoctype is given here:
http://otn.oracle.com/tech/xml/xdk_sample/9iR2_xdkfaq.html#parserplsql)
Now what i would like to know here is
Is the above approach possible with both internal and external DTD
Are there any other ways to do this.Any suggestions would be really great.
Regards
Gopal

Here's a link to a tutorial that might give you some more ideas:
http://otn.oracle.com/sample_code/tutorials/parser/domdtd/toc.htm
Regards,
-rh

Similar Messages

  • Can I maually check for updates but prevent them from being automatically installed if it turns out one is available?

    Can I maually check for updates but prevent them from being automatically installed if it turns out one is available?
    Background:
    In options I have "check for updates, but let me choose whether to install them" ticked. This works fine, in that I periodically receive a notice of an available update, and it will ask me whether I want to I want to install it.
    But there are certain times -- for reasons I won't go into here (unless requested as part of seeking a solution) -- where I want to manually check for new versions, but RETAIN the ability to decide whether or not to install it. But if I click Help/About Firefox/Check for Updates, and it finds an update, it will immediately proceed to install it without asking for permission. While that seems quite inconsistent with my update preferences in Options, it is apparently normal behavior as described in https://support.mozilla.org/en-US/kb/update-firefox-latest-version#w_how-do-i-manually-check-for-updates.
    So is there any way I can manually check for new-update availability but then refuse the update if I so choose? Once an unwanted install begins, I'm concerned that if I click cancel I could end up with a partial installation or some "messed up," duplicated or corrupted FF files (e.g., multiple versions appended with (1), (2) etc, similar to what sometimes confusingly happens when I do an XP System Restore).
    Thanks.

    I think what needs to be made very clear here is that when a user clicks on "check for updates" the software should bloody well CHECK for updates and most certainly SHOULD NOT proceed to download and apply any updates. this is misleading and intrusive.
    I just wanted to check if there was an updated version but I DID NOT want to actually update at that moment. the software downloaded data, costing me money and tried to apply the update which could have potentially messed up my settings if I had not checked everything was ok first.
    I actually discovered how to prevent the update by searching through windows and manually deleting the files but why should anyone have to go to such lengths?
    the software should simply do as it is asked, not do things that have most certainly not been asked.

  • 2nd time asking.......Pureplay Poker site is being redirected, hacked by facebook, and downloading trojans, etc....can this be prevented?? in English

    2nd time asking.......Pureplay Poker site is being redirected, hacked by facebook, and downloading trojans, etc....can this be prevented?? in English
    == URL of affected sites ==
    http://player.pureplay.com

    Hello Simeon.
    If a site is hacked or infected, the best course of action is to immediately stop using it. On the other hand, it seems to be working fine for me. You may be having a problem with some extension that is hindering your Firefox's normal behavior. Have you tried disabling all extension s (just to check), to see if Firefox goes back to normal?

  • When I publish a movie using Captivate 6 I sometimes get a slide that is overlayed with part of a previous slide.  Does anyone know why this might be happening and what I can do to prevent it?

    When I publish a movie using Captivate 6 I sometimes get a slide that is overlayed with part of a previous slide.  Does anyone know why this might be happening and what I can do to prevent it?

    Which version of 6? Check the slide quality, if it is at Low, push it to High or Optimized. Then uncheck all compression settings in Preferences, Project, SWF Size and Quality.

  • DTD: checks for ELEMENTs?

    In my DTD, i can write
    <!ELEMENT hello (#PCDATA)>
    to define an element with name "hello" as string. but how can i define elements to be numbers, dates, etc. so that the check with this DTD throws errors when the element value does not conform to a datatype/format?

    Hello Martin. This post is not related to this topic but I came by one of your old posts from last year and was wondering if you ever got the problem resolved.
    ORACLE driver: timeout => Connection reset by peer: socket write error ?
    Author: MartinHilpert Oct 11, 2002 2:57 AM
    I have the latest ORACLE JDBC driver 9201 for JDK 1.3. My servlet (running in weblogic server) works good during the day. But every morning, when i first access the servlet, I get the following exception when the first database access occurs:
    java.sql.SQLException: E/A-Exception: Connection reset by peer: socket write error
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:417)
    at oracle.jdbc.driver.OracleConnection.privateCreateStatement(OracleConnection.java:470)
    at oracle.jdbc.driver.OracleConnection.createStatement(OracleConnection.java:379)
    at de.deka.bav.sql.DBManager.select(DBManager.java:205)
    at de.deka.bav.sql.DBManager.getUserByLogin(DBManager.java:751)
    at de.deka.bav.security.UserManager.checkLogin(Unknown Source)
    at de.deka.bav.BavRequestBroker.processRequest(Unknown Source)
    at de.icomps.servlet.RoutingServlet.processPost(Unknown Source)
    at de.deka.bav.web.BavServlet.processPost(Unknown Source)
    at de.icomps.servlet.ICServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at de.icomps.servlet.ICServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2546)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2260)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    after re-deploying my servlet it works again (until the next morning). what's the reason for this? in my code i check the database connection for isClosed() and == null to create a new connection if one of these checks returns true. but it doesn't help. Is there a kind of timeout in the ORACLE driver? and if so, how can i detect this?
    I am having similar problems with my RSA Cleartrust deployement running on weblogic 7 sp4.
    You can email me if you like at [email protected]. Thanks in advance.

  • Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Same problem here (no graphics in header or footer) and the problem has been reported months ago. It is another bug/feature lost when Apple moves from 09 to the iCloud-compatible versions.  Complain to Apple, you may have better chance than me and they may finally listen to their users....

  • How many ways Checks can be reprinted, apart from FBZ5 and "Void and reprint" Options

    Hello All - Some times, when there is issue with Printer, Checks are not printed. In such a case, Users ask us how to print Checks.
    Some options I know are that (1) Checks can be reprinted through T Code - FBZ5 and
    (2) if Users are Ok with voiding Checks and use next available Check numbers, We use the option in the Variant - "Void and reprint" Option.
          Some Users are not happy with this Solution as they do not want to waste Checks.
    I am aware of only these 2 options. Can you please suggest me other alternatives we have to reprint Checks. Your valuable inputs are very helpful to us in this regard.
    Thanks

    Hi Hoysala,
    Please use the the FBZ5 as per attached screenshot for reprint check.

  • How can I permanently prevent the Reminder Fox icon (in the Add-on Bar) and the Add-on Bar from showing?

    Installed: Firefox 27. ReminderFox 2.1.4. Windows XP Professional
    Since ReminderFox 2.1.4 was installed, I have deselected the 'Status/Add-on Bar Display 'Bow' and text on status bar' numerous times, but the setting never takes effect even after pressing the Apply and OK buttons.
    The Add-on Bar, which has always been deselected from the View > Toolbars menu, shows as selected in the menu, and even though I deselect it manually, when I close Firefox and then reopen it, it shows again as selected in the menu.
    How can I permanently prevent the Reminder Fox icon (in the Add-on Bar) and the Add-on Bar from showing?

    It is possible to uninstall the add on or to customize the add on toolbar from the Toolbar Customize option. To troubleshoot this try this article [[How to fix preferences that won't save]]

  • My ipad 2 turnes to black screen with the apple icon in the middle, it just hanged and i have to restart it?! so why this is happening ?! is there is an error or something i can do to prevent doing this ?!

    my  new ipad 2 turnes to black screen with the apple icon in the middle while using it or if i just left it locked for a while, it just hanged and i have to restart it?! so why this is happening ?! is there is a productio error or something i can do to prevent doing this ?!
    Appreciate responding as soon as possible.

    No, it's definitely not normal. Your User's Guide recommends a series of troubleshooting steps to go through when your iPad is misbehaving: As you're already in effect doing the first of the main steps, a Restart of your iPad, and that's not curing it, move on to the next .. a Reset.
    To do this, press and hold both the Home and the Sleep/Wake buttons for about 10-12 seconds, until the display blanks and the red Power Off slider appears. Continue holding the buttons until the slider disappears, replaced by the black screen and white Apple logo.
    This shows your iPad is starting to reboot. Release the buttons and allow the process to continue until the Lock screen appears again, then slide the slider to complete the process.

  • I keep getting Configuration Error: 6 when I try to open my Adobe CS5.1 on my Macbook Pro with 10.6.8 operating system. I have tried to restart in safe mode and un/re-installing. What is there I can do to prevent this?

    I keep getting Configuration Error: 6 when I try to open my Adobe CS5.1 on my Macbook Pro with 10.6.8 operating system. I have tried to restart in safe mode and un/re-installing. What is there I can do to prevent this?

    Error 2, 4 (or -4), 6, 1000, 9006
    Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
    There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. Your default packet size being set incorrectly can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
    Verify that access to ports 80 and 443 are allowed on your network.
    Verify that communication to albert.apple.com or photos.apple.com is not blocked by a firewall, or other Internet security setting.
    Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps underAdvanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations.
    Restore your device while connected to a different network.
    Restore using a different computer.

  • How Can I to prevent == ORA-01436: CONNECT BY loop in user data

    Hi
    In query below
    WITH TT AS (SELECT '2' PAI, '3' FILHO FROM DUAL
                UNION ALL
                SELECT '3', '5'  FROM DUAL
                UNION ALL
                SELECT '3' ,'6' FROM DUAL
                union all
                select '3','4' from dual
                union all
                select '2' , '4' from dual
                union all
                select '2', '7' from dual
                union all
                select '4','8' from dual
                union all
                select '4', '9' from dual
                union all
                select '4', '10' from dual
                union all
                select '8','11' from dual
                union all
                select '8', '12' from dual
                union all
                select '11', '15' from dual
                union all
                select '8', '16' from dual
               union all
               select '9', '3' from dual)
       select distinct  pai, filho, level
       FROM TT   
       start with pai = &x        
       connect by prior filho = pai
       order by level  desc How can I to prevent error when user type the number 3 ?
    Message was edited by:
    muttleychess

    Hi , Tks
    work Fine
    WITH TT AS (SELECT '2' PAI, '3' FILHO FROM DUAL
                UNION ALL
                SELECT '3', '5'  FROM DUAL
                UNION ALL
                SELECT '3' ,'6' FROM DUAL
                union all
                select '3','4' from dual
                union all
                select '2' , '4' from dual
                union all
                select '2', '7' from dual
                union all
                select '4','8' from dual
                union all
                select '4', '9' from dual
                union all
                select '4', '10' from dual
                union all
                select '8','11' from dual
                union all
                select '8', '12' from dual
                union all
                select '11', '15' from dual
                union all
                select '8', '16' from dual
               union all
               select '9', '3' from dual
                union all
               select '11', '2' from dual
                union all
               select '11', '19' from dual
                union all
               select '19', '17' from dual
                union all
               select '17', '9' from dual)
       select distinct  pai, filho, level
       FROM TT   
       start with pai = &x        
       connect by prior filho = pai
       and mytree.connect_by_path(level,to_char(pai))||'/' not like '%'||to_char(prior pai)||'/%'
      order by 1,3But how can put in Order where show me all path , after other : Example begin with level 1 --> go to level 2 --> level 3....etc, after go other level 1, level 2 ...etc

  • Check can be made in SAP GTS in an automatic payment  process FIPAY_GTS message no.003

    Hi Experts,
    We have created new company code and while payment proposal we are geting follwoing message.
    "No check can be made in SAP GTS in an automatic payment  process FIPAY_GTS message no.003"
    It seems that the check in SAP GTS for FI is activated and it missing some customizing activities for new company code.
    Can some one help me to resolve this issue ?
    Screenshot is attached.
    Thanks in advance.
    Iftikhar

    Check if you have done configuration setting.
    In Customizing choose Financial Accounting (New)  -> Financial Accounting Global Settings (New) -> Tools -> Change Message Control.
    Application Area: FIPAY_GTS
    Message No: 003

  • No Availabilty Check can be carried out

    Dear All,
    While do the availablity check for material, I face an error :- "No Availability Check can be carried out for Material XYZ".
    As per my opinion,if this material is blocked with some sales transactions like Sales orders & Delivery,it will show the same.
    How to rectify this problem and why it is coming ? Kindly Elaborate.
    Best Regards,
    Ankur

    Hi
    First of all No Availability Check can be carried out for Material XYZ
    This is not a error message and it is a information message
    This comes while sales order creation because
    Say Material X plant 1000 and user A is entering a sales order and hes has not finished sales order creation still in VA01 transaction only
    Say the available qty for thar material is 25 units and user A has put 20 units and has not pressed enter
    Now user B creates another sales order for  same Material X and same plant 1000  say for 15 units
    Now for user B the system will throw this message No Availability Check can be carried out for Material for material X
    Because the system doesnot know at the time of user B craeting sales, what is going to the order of user A and it cannot do Availabilty Check for two sales orders simultaneously for the same material in same plant
    To control this only , define material block for users in we have  Availability Check in sd--basic fns in img
    Once the user A comes out VA01 t code and pressed enter for that material the system then can do Availability Check  for user B or otherwise settings are reqd define material block for users in we have  Availability Check in sd--basic fns in img
    Regards
    Raja

  • "No Availability Check Can Be Carried Out"

    Q.- In which all business situations we can get an error message - "No Availability Check Can Be Carried Out" except Material is blocked by another user?
    Please replay as early as possible.
    Thanks and Best Regards,
    Amol
    Edited by: amwsapsd on Aug 25, 2010 8:06 AM

    It will Pop -up the same Message in case if the Order , Delivery note & Reservation of Material is Processing.
    You can then block the relevant Transaction as per the requirements.
    Best Regards,
    Ankur

  • When I drag photos into iMovie, the image quality is degraded.  Can I somehow prevent the degradation?

    When I drag photos into iMovie, the image quality is degraded.  Can I somehow prevent the degradation?

    Hi
    A very common origin to jumpy picture is
    • Recorded material in one frame rate e.g. 29.97fps (NTSC) and iDVD set to do a 25fps (PAL) project - OR the other way around.
    It delivers a DVD but a very bad one.
    I do convert all my material to same fps as the DVD I want to do (e.g. PAL) - before any editing etc.
    I use JES_Deinterlacer or Compressor to do this and the result is so much better.
    JES_Deinterlacer is free on Internet and makes a Great job - Professional alternatives comes at an astronomical cost and the quality is not hardly no better.
    Yours Bengt W

Maybe you are looking for