XML document in CLOB with reference to external DTD

If you place the xml document in clob using dbms_lob and the document has reference to external (system) DTD then it gives an error 'Error opening external DTD'. Whats the work around. See example below...
declare
xmlstring CLOB;
xmlstring1 CLOB;
os_file BFILE := bfilename('BFILE_DIR','family.xml');
> > > rowsp INTEGER; > > > errnum NUMBER; > > > errmsg VARCHAR2(2000);
> > > time VARCHAR2(20); > > > begin
> > > select to_char(sysdate,'MM/DD/YYYY HH24:MI:SS')
> > > into time from dual; > > > dbms_output.put_line(time);
> > > dbms_lob.createtemporary(xmlstring, true, > > > dbms_lob.session);
> > > dbms_lob.fileopen(os_file, > > dbms_lob.file_readonly);
> > > dbms_lob.loadfromfile(xmlstring, os_file,
> > > dbms_lob.getlength(os_file));
> > > select to_char(sysdate,'MM/DD/YYYY HH24:MI:SS')
> > > into time from dual; > > > dbms_output.put_line(time);
> > > xmlgen.resetOptions; > > > xmlgen.setRowTag('family');
> > > --xmlgen.setIgnoreTagCase(xmlgen.IGNORE_CASE);
> > > rowsp := xmlgen.insertXML('family',xmlString);
> > > dbms_output.put_line(' Rows processed = '| | > > > TO_CHAR(rowsp));
> > > dbms_lob.freetemporary(xmlstring);
> > > dbms_lob.fileclose(os_file); > > > commit; > > > exception
> > > when no_data_found then > > > rollback;
> > > dbms_lob.freetemporary(xmlstring);
> > > dbms_lob.fileclose(os_file); > > > errnum := abs(SQLCODE);
> > > errmsg := SQLERRM;
> > > dbms_output.put_line(errnum| |'----'| |errmsg); > > > when others then
> > > rollback; > > > dbms_lob.freetemporary(xmlstring);
> > > dbms_lob.fileclose(os_file); > > > errnum := abs(SQLCODE);
> > > errmsg := SQLERRM;
> > > dbms_output.put_line(errnum| |'----'| |errmsg); > > > end;

Can be one of two problems.
One
Your database user does not have
privileges to open a socket inside
the database. This will prevent
the XML parser running inside the DB
from retrieving the DTD which it must
do to properly parse the document.
Two
you are sitting behind a corporate
firewall and need to properly set
the Proxy Server host and port to
properly retrieve the DTD.
From looking at your code it would appear
that your job can more easily be done by
using the OracleXML putXML command line
utility outside the database.
You can specify the -D options to your
JavaVM to set the System properties for
the proxy server if need be like this:
java -DproxySet=true -DproxyHost=yourproxyserver OracleXML putXML

Similar Messages

  • Collective posting of Inbound Delivery with reference to External ID

    Hi,
    I have created few Inbound Delivery (for different PO) with same External ID reference.
    Now when I try to process these Inbound Delivery through T. Code: VL06IG with reference to External ID, system doesnot consider any Inbound Delivery.
    The External Identification Type used is "Free usage".
    I have checked in the Inbound delivery all the informations are correctly copied. for e.g. the storage location, etc. Also the Storage location is WM activated
    Can you please help me if I am missing any settings.

    First of all I want to clarify this transaction will pick deliveries which are ready for goods receipt.Tat means pick and confirmation should be completed.Now you have to check all your inbound deliveries which has same external id Picking and confirmation completed ?.If yes are you entering same test external id which is in delivery in report.Just copy test in delivery and paste the text in report.System will pick those deliveries.Text is case sensitive.so you should type text correctly.I have tested your scenario and it is working fine.

  • Load xml document from CLOB

    I'm try to load xml document from CLOB in following way:
    --- procedure loadXML.sql -----
    CREATE OR REPLACE PROCEDURE loadXML
    IS
    CONTENT CLOB := ' ';
    SOURCE bfile := BFILENAME('XMLFILES', 'N_95_A.xml');
    begin
    DBMS_LOB.OPEN(SOURCE, DBMS_LOB.LOB_READONLY);
    DBMS_LOB.loadFromFile(CONTENT, SOURCE, DBMS_LOB.getLength(SOURCE));
    DBMS_LOB.fileClose(SOURCE);
    insert into OFERTY (OFDOCUMENT)
    values (sys.XMLtype.createXML(CONTENT));
    commit;
    end;
    and I get
    SQL> @e:\myxml\loadXML
    declare
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00210: expected '<' instead of '<'
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    ORA-06512: at line 8
    What is wrong?

    Have you tried simply outputting iusing the htp.p function? for example:
    /* ... inside a PL/SQL region */
    declare
       lclb_output clob;
    begin
       select doc_xml into lclb_output from mf_xml_docs where doc_id = :P1_DOC_ID;
       htp.p(lclb_output); -- you may have to split this into chunks and loop through, depending on how big the clob is
    end;

  • Biiling with reference to external documents

    Is it possible to create invoice with reference to the external documents (from SAP Real Estate) automatically in SD?  Please advise.
    Thanks,
    ak

    If you want to preserve the xml exactly as is, then store it as varbinary(max).  This will of course mean you can't use the features of the xml datatype.
    USE tempdb
    GO
    DROP TABLE [dbo].[XmlTest]
    GO
    CREATE TABLE [dbo].[XmlTest] ( xml XML, vbin VARBINARY(MAX) )
    GO
    DECLARE @xml NVARCHAR(MAX);
    SET @xml = '<!DOCTYPE R [<!ELEMENT R (#PCDATA)> <!ENTITY ndash SYSTEM "http://localhost/ExEnt.ent">]><R>&ndash;</R>';
    INSERT INTO [dbo].[XmlTest] VALUES(CONVERT(XML, @xml, 3), CONVERT(VARBINARY(MAX),@xml));
    GO
    SELECT *, CAST( VBIN AS nvarchar(MAX))
    FROM [dbo].[XmlTest]
    Is that an option for you?

  • Office documents are left with references to templates which may be inaccessable, causing errors, slowness or login prompts

    [Possible should be in a SharePoint forum, not entirely sure.]
    Hey People,
    this
    MSDN article is still the only reference I can find to this problem, so I thought I'd raise it again, given that it impacts SharePoint 2013 users.
    In my case, it's SharePoint 2010 (on prem) and Office 2010, but I've done a quick test in SP2013 [it's the same] and SharePoint Online (O365) [it's OK].
    If you create a document from within SharePoint (I've only checked Word), you will end up with a reference to the creating temlplate inside the DOCX file.
    This reference causes the document to "phone home" every time it is opened, which may not be ideal if:
    1) user does not have permission to access the original site/document library
    2) user is opening the document from a network that does not have access to the original SharePoint server
    3) you don't want to reveal your internal server names/aliases/site paths/etc to the person you are sending the document to.
    Note: if the user does not have permissions to the original server/site/doclib, they will get a login prompt when they open the document. The login can be cancelled and the user will still be able to view the document.
    If you know about unpacking DOCX files, the offending file is word\_rels\settings.xml.rels
    If the only reference in there is to the template, you can safely delete this file and repackage the DOCX.
    I haven't attempted to use the various metadata stripping tools out there to see if they remove it.
    I'm somewhat surprised more people aren't seeing this.  I'm even surprised it doesn't turn up at my office more, but then I guess most people will create the document in Word/Excel/PowerPoint and then save to SharePoint, rather than using SharePoint's
    own New Document functionality.
    Anyone else seen/experimented with this further?

    [Possible should be in a SharePoint forum, not entirely sure.]
    Hey People,
    this
    MSDN article is still the only reference I can find to this problem, so I thought I'd raise it again, given that it impacts SharePoint 2013 users.
    In my case, it's SharePoint 2010 (on prem) and Office 2010, but I've done a quick test in SP2013 [it's the same] and SharePoint Online (O365) [it's OK].
    If you create a document from within SharePoint (I've only checked Word), you will end up with a reference to the creating temlplate inside the DOCX file.
    This reference causes the document to "phone home" every time it is opened, which may not be ideal if:
    1) user does not have permission to access the original site/document library
    2) user is opening the document from a network that does not have access to the original SharePoint server
    3) you don't want to reveal your internal server names/aliases/site paths/etc to the person you are sending the document to.
    Note: if the user does not have permissions to the original server/site/doclib, they will get a login prompt when they open the document. The login can be cancelled and the user will still be able to view the document.
    If you know about unpacking DOCX files, the offending file is word\_rels\settings.xml.rels
    If the only reference in there is to the template, you can safely delete this file and repackage the DOCX.
    I haven't attempted to use the various metadata stripping tools out there to see if they remove it.
    I'm somewhat surprised more people aren't seeing this.  I'm even surprised it doesn't turn up at my office more, but then I guess most people will create the document in Word/Excel/PowerPoint and then save to SharePoint, rather than using SharePoint's
    own New Document functionality.
    Anyone else seen/experimented with this further?

  • Billing Document is Created with reference to Cancelled Sales Document

    Hi Experts!!
    Please Help me.. I'm so confused why does the system allows creation of billing document with reference to a cancelled sales document.
    Settings:
    We use document type (ZRAS-Repairs/Service) for service order and use billing document (ZFR-Invoice Repair).
    I have already assigned reason for rejection for each line item, but still I can create billing document with reference to that SO.
    Help Help Help...
    Regards,
    Carla

    Go to OVAG, this is where we maintain reasons for rejection
    IMG > Sales & Distribution > Sales > Sales Documents > Sales Document Item > Define Reasons for Rejection
    Select your reason for rejection and put a check under the column "BIC", this means that your items will not be relevant for billing..
    Hope this answers your question..

  • Display XML Document from CLOB Column on page

    Hi,
    I have been reading all the CLOB postings that I can find, but I still cannot get my page to do what I want.
    I have a very simjple table:
    MF_XML_DOCS (DOC_ID NUMBER, DOC_XML CLOB)
    I can populate this table OK but I am having problems getting the cotent back out. I want a simple page that takes an ID Number and displays the XML Document for that ID (select doc_xml from mf_xml_docs where doc_id = :P1_DOC_ID). Everything I try either truncates the text (or errors) at 4000 or 32767 characters or reads the XML tags as tags and does not display them. I want a simple display of the XML Document (and I don't mind if it is in an 'updateable' field or not):
    <Parent>
       <name>Dad</name>
       <Children>
          <Child>
             <name>Number 1 Son</name>
         </Child>
          <Child>
             <name>Number 2 Son</name>
         </Child>
       </children>
    </Parent>But when I do something that works for large (32767+) documents all I see is 'Dad Number 1 Son Number 2 Son'.
    Help!!
    many thanks,
    Martin

    Have you tried simply outputting iusing the htp.p function? for example:
    /* ... inside a PL/SQL region */
    declare
       lclb_output clob;
    begin
       select doc_xml into lclb_output from mf_xml_docs where doc_id = :P1_DOC_ID;
       htp.p(lclb_output); -- you may have to split this into chunks and loop through, depending on how big the clob is
    end;

  • Get SOAP Cannot Create XML Document reader error with Outlook integration?

    Hi,
    We installed Outlook Email Integration on a windows XP / Office 2007 machine and it installed OK. However when we click the "Add to CRM On Demand" button and try to login we get the following error message when we click the 'Sign In" button
    "SOAP: Cannot create XML document reader"
    Has anyone come across this? Are there any pre-requisites for using this add-in? e.g. Service Packs, .NET framework etc?
    Cheers

    It may not be the case...but pls. check if MS Word is defined as editing tool for email.. It should not be.
    ANotnio
    BExpert, Brazil

  • IDOC message type WMMBXY not including Serial numbers in GR material documents when created with reference to an Inbound delivery

    Hello,
    We currently have an inbound ALE process (message type WMMBXY and basic type WMMBID02) to post GR's against inbound delivery. If the inbound delivery item is maintained with serial numbers, we want those serial numbers to be pulled into the goods movement material document (and stored in SER03).
    Currently segment E1MBXYJ is maintained with the inbound delivery number in field VLIEF_AVIS and Inbound delivery item number in field
    VBELP_AVIS. In segment E1MBXYI, no purchase order is assigned and the fields EBELN and EBELP are blank. The movement indicator (KZBEW) has the value 'B'.
    Even after making the above settings, the serial number(s) maintained on the Inbound delivery item do not get saved to the material document.I did look at OSS note 833603 (Solution for 2 - GR for Inbound delivery) and we have followed the same settings. This works when there is no serial number in the Inbound delivery. However if we have serial numbers, the IDOC posts successfully, however the material documents in MB03 do not have any serial numbers copied over from the Inbound delivery where the serial numbers are definitely assigned.
    Any help you can provide is greatly appreciated!
    Thanks,
    Ashvin
    P.S
    If we manually create the GR via MIGO, the serial numbers are automatically applied to the GR material document. This is what we want to accomplish via the above IDoc process.

    Hi
    Try with enhancement MWMIDO08. See note 833603 - EDI: Goods receipt for stock transport order for further information.
    I hope this helps you
    Regards
    Eduardo

  • Something is wrong about passing xml document to clob

    Dear All,
    I have a procedure that uses XMLELEMENT to create an XML source. When I try to pass the XML source to the outgoing parameter of the procedure I receive an error saying
    "ORA-19011: Character string buffer too small"
    When I checked the length of the source it was just 5000 characters long. How is it possible that I can't give this to a clob?
    Thank you,
    Franky

    I'm going to answer it for myself.
    Use getclobval() function any you will succeed.
    Franky

  • XML-Document with extern DTD

    Hello!
    How can the Oracle XML-Parser parse a XML-Document without the
    XML-Declaration. There is no information about the Version and
    the DTD in the XML-Document. Can I use an extern DTD?
    Thanks,
    Peter
    null

    Peter Roemer (guest) wrote:
    : Hello!
    : How can the Oracle XML-Parser parse a XML-Document without the
    : XML-Declaration. There is no information about the Version and
    : the DTD in the XML-Document. Can I use an extern DTD?
    : Thanks,
    : Peter
    Have you tried oracle.xml.parser.v2.XMLParser.setDoctype(DTD)?
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • How to create complaints with reference to ECC Billing document (CRM 7.0)

    Hi experts!
    I use ECC 6.0 and CRM 7.0.
    I have to create CRM complaints (ZCLR - CLRP) with reference to ecc billing documents.
    I read the following topics and help:
    1. How to create complaints with referenceto ECC Billing document
    2. Re: How can we transfer billing documents from SAP ERP to CRM 2007?
    3. http://help.sap.com/saphelp_crm70/helpdata/en/46/029ba32e675c1ae10000000a1553f6/frameset.htm
    Made these settings:
    1. Define the Business object type
    Goto SPRO>CRM>Transaction>Settings for Complaints>Integration>Trnsaction Referencing>Define Object types for Transaction reference
    2. Assign Business Object Types to Transaction Types
    Goto SPRO>CRM>Transaction>Settings for Complaints>Integration>Trnsaction Referencing>Assign Business Object Types to Transaction Types
    3. Implement a BADI - CRM_COPY_BADI_EXTERN.Check Implementation CRM_COPY_BADI_BILLDO for more information on the coding for referencing the ECC Billing document.
    Goto SPRO>CRM>Transaction>Settings for Complaints>Integration>Trnsaction Referencing>BAdI: Create Complaint with Reference to External Transaction.
    but still do not know,
    1) if I should pre-replicate billing documents into CRM ?
    2) Or, the system uses the RFC to find these documents in ECC to create reference?
    Please help me.
    Best regards Kostya.
    Edited by: Kostya Khveshchenik on Oct 20, 2010 2:09 PM

    not resolved =(
    Edited by: Kostya Khveshchenik on Nov 19, 2010 8:50 AM

  • Intermedia text search in XML document stored as CLOB

    Suppose i store an XML document as clob
    and i index it based on the tags ie
    if i have the followind table
    create table biodata (
    resume_id number primary key,
    content clob default empty_clob(),
    applicant_id number references
    applicants(id));
    and i stores various resumes in the clob (content column ) as xml document ie
    <experience_in_months> 22 </experience_in_months>
    Now if i want all the resume_id that that have experiences_in_months >= 10
    what would be the query that would fetch me this result?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by voron:
    We are storing data in XML format in an Oracle database (via CLOB). I can retrieve search results using the 'within' phrase, but am finding it hard to order them. Is there a utility or command I can use?<HR></BLOCKQUOTE>
    Maybe you should write a stored procedure (function )
    that extracts the section from your clob
    that should be sorted. Then use this function
    in the ORDER clause of your select statement.
    Andreas
    null

  • One particular Po document type with reference to one particular PR documen

    Dear all
           I want to create one PO for a particular document type only with reference to one PR, that to after release of PR, how can i do it.

    Hi
    Goto, OLME ---> PO ---> Define Document types -
    > Choose your PO Doc.Type...> there in Linking PR and PO Doc.Type....allow your PR doc.Type only.....
    Also in OLME -
    > PR -
    > Define Document types -
    > Choose your PR Doc.Type...>There also you maintain this PR Doc.type only as ref. to your PO doc. type....
    Then Configure Release Statergy in such that All your new PR Doc. type PRs should gone thro the Release Statergy.....(use field CEKKO-BSART)
    Reward if useful
    Regards
    S.Baskaran

  • Writting a XML file from a DOM with the reference to a DTD

    Hi everyone,
    how can I write a XML file, that has a reference to a DTD like:
    <!DOCTYPE testdoc SYSTEM "testdoc.dtd">
    I have a DOM that contains my XML-Data and I want to have this line in the XML File. I'm using a Transformer to write this XML stuff in the file.
    Does anyone has an idea?
    Thanks in advance
    Andi

    http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/OutputKeys.html
    transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, "testdoc.dtd");

Maybe you are looking for

  • Web Remote DVR with two set-top boxes

    I'd like to access one or both of the two DVRs I have from the web so I can setup recordings when I am not at home.   When I login to FIOS TV Central it recognizes my two QIP6416 HD DVRs.  However, If I go to TV listings I do not get any option to re

  • Can't enter iTunes store after update to iTunes 10.4.1.10

    This is a horrible update! After I update iTunes to 10.4.1.10 on my computer, I can't access to the store home page, it's just keep loading with a white blank page. I could access to my account page but all the other pages are blank. Someone please h

  • Toshiba 46HL900A won't turn on

    My TV won't turn on completely. The red power light turns from red to green but the TV doesn't turn on? Anyone know why? Thanks

  • Best word processing app for i-mac?

    As a 'newie' to the wonderful world of i-mac's can anyone recommend a good word processing app. Currently going round and round in circles trying to find one thats compatible with i-mac. Don't want to go down the Microsoft word option due to compatab

  • JMS C API 8.1 sp4

    hi, i need to uptate a software build using JMS C API for weblogic 8.1 sp2 to sp4 .there is any new jms c api for this? how can i download it?           ix exist, what are the changes?? thanks