DTD file?

Hello,
I got one DTD file from Client and i exported that file in external definition.
when i check the message tab in external definition there is no message available.
I tired to import the external definition, its giving error as Shipment has no message.
Thanks and Regards,
Chinna

choose DTD as External format
Selection Options in Messages List Box:message from DOCTYPE.
A dtd can be referenced by other dtd.It is only possible to reference external definitions with the same namespace.see The External References tab page which lists the references found in the document .

Similar Messages

  • How to register the .DTD file in Oracle Apps

    Hi,
    I am getting below error while generating XML file by concurrent program:
    Attaching XML file and .DTD file.
    Do I need to register this .DTD file somewhere?
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    System error: -2146697210. Error processing resource 'http://mbci-ebsdev.itciss.com/OA_CGI/label.dtd'.
    Below is the stored procedure I created to generate the XML file
    create or replace
    PROCEDURE Demo_XML_Publisher (errbuf VARCHAR2,retcode NUMBER,v_customer_id VARCHAR2)
    AS
    /*Cursor to fetch Customer Records*/
    CURSOR xml_parent
    is
    SELECT header_id,ordered_item
    FROM oe_order_lines_all
    WHERE header_id = v_customer_id;
    /*Cursor to fetch customer invoice records*/
    CURSOR xml_detail(p_customer_id NUMBER)
    is
    select a.order_number,a.header_id,a.order_type_id
    from oe_order_headers_all a,oe_order_lines_all b
    where a.HEADER_ID = B.HEADER_ID
    and a.header_id = p_customer_id
    AND ROWNUM<4;
    BEGIN
    /*First line of XML data should be <?xml version=”1.0??>*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0" encoding="UTF-8"?>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<!DOCTYPE labels SYSTEM "label.dtd">');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<labels FORMAT="order.btw" PRINTERNAME="KIMBALL1872A" _QUANTITY="1">' );
    FOR v_customer IN xml_parent
    LOOP
    /*For each record create a group tag <P_CUSTOMER> at the start*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<label>');
    /*Embed data between XML tags for ex:- <CUSTOMER_NAME>ABCD</CUSTOMER_NAME>*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<HEADER_ID>' || V_CUSTOMER.header_id
    || '</HEADER_ID>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<ORDERED_ITEM>' || v_customer.ordered_item ||
    '</ORDERED_ITEM>');
    FOR v_details IN xml_detail(v_customer.header_id)
    LOOP
    /*For customer invoices create a group tag <P_INVOICES> at the
    start*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<P_INVOICES>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<variable name= "Order_no">' ||
    V_DETAILS.ORDER_NUMBER || '</variable>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<variable name= "Headr_Id">' ||
    V_DETAILS.HEADER_ID || '</variable>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<variable name= "Order_Type_Id">'||
    v_details.order_type_id||'</variable>');
    /*Close the group tag </P_INVOICES> at the end of customer invoices*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</P_INVOICES>');
    END LOOP;
    /*Close the group tag </P_CUSTOMER> at the end of customer record*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</label>');
    END LOOP;
    /*Finally Close the starting Report tag*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</labels>');
    exception when others then
    FND_FILE.PUT_LINE(FND_FILE.log,'Entered into exception');
    END Demo_XML_Publisher;
    Below is the Label.dtd file structure m using:
    <!ELEMENT labels (label)*>
    <!ATTLIST labels _FORMAT CDATA #IMPLIED>
    <!ATTLIST labels _JOBNAME CDATA #IMPLIED>
    <!ATTLIST labels _QUANTITY CDATA #IMPLIED>
    <!ATTLIST labels _PRINTERNAME CDATA #IMPLIED>
    <!ELEMENT label (variable)*>
    <!ATTLIST label _FORMAT CDATA #IMPLIED>
    <!ATTLIST label _JOBNAME CDATA #IMPLIED>
    <!ATTLIST label _QUANTITY CDATA #IMPLIED>
    <!ATTLIST label _PRINTERNAME CDATA #IMPLIED>
    <!ELEMENT variable (#PCDATA)>
    <!ATTLIST variable name CDATA #IMPLIED>
    Thanks in Advance

    In any case, the dtd is incorrect and that may be why. The element structure is at least look like this.
    <!ELEMENT labels (label*)>
    <!ELEMENT label (CUSTOMER_NAME?, HEADER_ID, ORDERED_ITEM, P_INVOICES*)>
    <!ELEMENT P_INVOICES (variable, variable, variable)>If you want to keep some flexibility on variable's cardinality, you can simply it like this.
    <!ELEMENT labels (label*)>
    <!ELEMENT label (CUSTOMER_NAME?, HEADER_ID, ORDERED_ITEM, P_INVOICES*)>
    <!ELEMENT P_INVOICES (variable+)>Then you add the appropriate ATTLIST for the elements.

  • Error while running forge - Could not open DTD file

    Hi,
    I have a simple application created in Endeca,facing below error when I run baseline_update.sh
    FATAL   09/04/13 22:26:42.491 UTC (1378333602491)       FORGE   {baseline}: Error in file 'file:///../../endeca/apps/Sample/data/processing/Sample.analytics_config.xml' (line 2, char 58): An exception occurred! Type:RuntimeException, Message:Could not open DTD file 'file:///../../endeca/apps/Sample/data/processing/analytics_config.dtd'.
    Initially Forge was running error free, only changes we made were :
    1. Ingesting multiple XML files.
    2. Changed match mode of dimensions to Autogen
    Forge is unable to open any of the DTD files, for testing removed DTD reference line from Sample.analytics_config.xml.
    Forge fails again " FORGE   {baseline}: Error in file 'file:///../../endeca/apps/Sample/data/processing/Sample.cral_profile.xml...................................."
    Regards,
    Shruthi

    I've seen this type of error before when Forge is configured to read multiple files with spec *.xml.  Is that how you've configured your record adapter?  This configuration then collides with Forge XML config files merged into the same data/processing directory.
    From memory there's a couple of solutions for this - one might be to give the files a common name prefix if that's feasible, e.g. _data*.xml.  You could use a sub-directory to separate the files, but you'd need to modify your copy scripts.

  • How to paste DTD in XML file. (not reference to .dtd file)

    Hello!
    I create XML file using DOM. How can I create DTD on the top of the file?
    I need the DTD, not a reference to it. So the next method won't work.
    transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, "Resources\\Settings\\projectFile.dtd") since it is paste a reference to .dtd file. It means that if user moves XML file to other place he need to move .dtd file also, and I don't want this method. I want paste next DTD
    <!DOCTYPE project [
                        <!ELEMENT project (component*) >
                        <!ELEMENT component ANY >
                        <!ATTLIST component id  ID  #REQUIRED >
    ]>from the .dtd file on the top of my XML file. How can I do this?
    Thank you.

    I've found that by opening a inputstream to the XML file and wrapping it to filter the DTD out altogether and passing that inputstream to JAXB does the trick.
    this seems actually faster, since it doesn't go off on the net to look for the dtd!
    is this not catered for already somewhere??
    thanks,

  • Create a DTD file in path /bc/bsp/sap/smart_forms/smart_forms_xsf.dtd

    /bc/bsp/sap/smart_forms/smart_forms_xsf.dtdHello Gurus,
    Requirement
    I have a requirement to send the SMARTFORM pdf attachment in the form of a mail. It means the user will be able to look into the content of the PDF attachment of a smart form in the body of the mail. I found this standard program SF_XSF_DEMO which does exactly what I want. I can very well use the coding provided in this program to acheive what I want - send content of PDF attachment in the body of mail.
    Issue
    When I execute the standard program SF_XSF_DEMO I am finding that it is sending the mail to the email id specified in the selection screen of the program. The Mail is stuck in SOST where it is showing the email having data in required format - with logos, tables lines etc. But when I send the mail to the email id out of SOST it is received and I find there is formatting issue.
    The logo is not in the right place, the tables are not dispalyed but only the contents of the tables are displayed. It is not formatted in sequence. It is a continuous text.
    Then I found a PDF document
    http://www.erpgenie.com/sap/netweaver/images/SAP%20Smart%20Forms%20XSF%20-%20XML%20Output%20for%20Smart%20Forms%20for%20SAP%20Web%20Application%20Server%20610.pdf
    which explains step by step ways of working of this program. It also explains how the DTD <Document type definition> is used for this purpose.
    Question
    Please throw some light on how the DTD file to be created in the path bc/bsp/sap/smart_forms/smart_forms_xsf.dtd.
    I have content of the DTD that should go in to this path but how to upload it???
    I appreciate your help in advance.
    Regards
    Ram  

    I would like to know how the document type definition given in the PDF at page 25 and 26 can be uplaoaded as a DTD file in the required path,
    /bc/bsp/sap/smart_forms/
    The file to be put is smart_forms_xsf.dtd.
    Regards
    Ram

  • Where to find dtd file name/schema for a certain XML Gateway interface

    Hi folks,
    For a certain XML Gateway interface, in which DB table can I find the dtd file name and dtd schema that this interface use?
    Now I can find its map name.
    Thanks.

    Hello!
    I found the answer myself now.
    The XLST files are part of the static web content of the MI project Visiprise.
    In the SAP MII workbench go to the project Visiprise
    Then under the tab Web the static contecnt can be found under the folder WEB/XSLT/..

  • How to get rid of .dtd file in XML file?

    If there is "<!DOCTYPE xxx SYSTEM "xxx.dtd">" in a XML file and there is no xxx.dtd file, there will be wrong while parsing in Java using JAXP, and the function: setValidating(false) is no use. I can't modify original XML file containing "<!DOCTYPE xxx SYSTEM "xxx.dtd">" and Maybe I have not that xxx.dtd file.
    Please tell me how to solve it if you know, thanks a million.

    You're stuck. You've either got to find that .dtd file, or remove the line from the XML. Your only other option is to reimplement the DTD file so that the XML can use it, or you can just redo everything

  • XML load using PL/SQL (XSU) problem with dtd file.

    Hi,
    I'm trying to load a xml file and receives this errormassage:
    SQL> exec loadxml;
    In Exception
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.xml.sql.OracleXMLSQLException: Error opening external DTD
    'Businesscard.DTD'.
    Any idea what I can change? Below is the things I've done and also how the xml file looks
    and the dtd file.
    Regards
    Jorgen
    CREATE DIRECTORY XML_DIR AS 'C:\XML';
    CREATE TABLE XML_TEMP (key NUMBER, f_lob BFILE);
    INSERT INTO XML_TEMP VALUES (1,BFILENAME('XML_DIR','TeleAdressVKI0209021728.xml'));
    CREATE TABLE XML_DOC (
    Key1 VARCHAR2(32),
    Key2     VARCHAR2(32),
    Key3 VARCHAR2(32),
    Terminate     VARCHAR2(3),
    LegalName     VARCHAR2(420),
    PopName          VARCHAR2(420),
    StreetName     VARCHAR2(60),
    StreetNumber     VARCHAR2(10),
    PostNumber     VARCHAR2(10),
    PostAdress VARCHAR2(30),
    CordinateLevel     VARCHAR2(32),
    xCor          VARCHAR2(10),
    yCor VARCHAR2(10),
    PoiCategory VARCHAR2(32),
    Telephone VARCHAR2(30));
    CREATE OR REPLACE PROCEDURE loadxml AS
    fil BFILE;
    buffer RAW(32767);
    len INTEGER;
    insrow INTEGER;
    BEGIN
    SELECT f_lob INTO fil FROM xml_temp WHERE key = 1;
    DBMS_LOB.FILEOPEN(fil,DBMS_LOB.FILE_READONLY);
    len := DBMS_LOB.GETLENGTH(fil);
    DBMS_LOB.READ(fil,len,1,buffer);
    xmlgen.resetOptions;
    insrow := xmlgen.insertXML('xml_doc',UTL_RAW.CAST_TO_VARCHAR2(buffer));
    DBMS_OUTPUT.PUT_LINE(insrow);
    IF DBMS_LOB.FILEISOPEN(fil) = 1 THEN
    DBMS_LOB.FILECLOSE(fil);
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('In Exception');
    DBMS_OUTPUT.PUT_LINE(SQLERRM(SQLCODE));
    IF DBMS_LOB.FILEISOPEN(fil) = 1 THEN
    DBMS_LOB.FILECLOSE(fil);
    END IF;
    end;
    The xml file look like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE Cards SYSTEM 'Businesscard.DTD'>
    <Cards>
    <Comment>TeleAdress initial</Comment>
    <OldFile>xxxx</OldFile>
    <NewFile>xxxx</NewFile>
    <Card>
    <Key1>95352</Key1>
    <Key2>159651</Key2>
    <Key3>3807868</Key3>
    <Terminate>no</Terminate>
    <Cardholder>
    <LegalName>
    <Name>
    <Full>AXFOOD DIREKT AB</Full>
    </Name>
    </LegalName>
    <PopName>
    <Name>
    <Full>WILLYS LEGPRIS AB</Full>
    </Name>
    </PopName>
    </Cardholder>
    <Location>
    <Address>
    <StreetInfo>
    <StreetName>BAGARBYVDGEN</StreetName>
    <StreetNumber>61</StreetNumber>
    </StreetInfo>
    <ZipCode>19134</ZipCode>
    <City>SOLLENTUNA</City>
    <Coordinate>
    <Level>1</Level>
    <xCor>1620480</xCor>
    <yCor>6592717</yCor>
    </Coordinate>
    </Address>
    <Business>
    <POI>
    <POIId>46</POIId>
    <POIId>84</POIId>
    </POI>
    <InfoRow>
    <Subscriptions>
    <TelAddress>08 6234540</TelAddress>
    </Subscriptions>
    </InfoRow>
    </Business>
    </Location>
    </Card>
    <Card_Count>1</Card_Count>
    </Cards>
    the dtd file looks like this:
    <!-- BusinessCard.dtd -->
    <!-- History:          See end of this file -->
    <!-- Description:      This DTD is used for transferring business cards-->
    <!--               from TeleAdress Information AB to its customers. -->
    <!--===================== Root Element ===========================-->
    <!ELEMENT     Cards     (Comment,OldFile?,NewFile,Card*,Card_Count)>
         <!ELEMENT     Comment                         (#PCDATA)>
         <!ELEMENT     OldFile                         (#PCDATA)>
         <!ELEMENT     NewFile                         (#PCDATA)>
    <!--===================== Card ============================-->
    <!ELEMENT     Card     (Key1, Key2, Key3, Terminate, (RegNo?, Cardholder, Row*)?)>
         <!ELEMENT     Key1          (#PCDATA)>
         <!ELEMENT     Key2          (#PCDATA)>
         <!ELEMENT     Key3          (#PCDATA)>
         <!ELEMENT     Terminate     (#PCDATA)> <!-- Values can be yes or no-->
    <!--====================== Cardholder ============================-->
    <!ELEMENT     Cardholder     (RegNo, OrgType, LegalName, PopName?, Location)     >
         <!ELEMENT     RegNo          (#PCDATA)>
         <!ELEMENT     OrgType          (#PCDATA) >
    <!--====================== RegName ==================================-->
    <!ELEMENT     LegalName          (Name)>
    <!--====================== PopName ==================================-->
    <!ELEMENT     PopName          (Name+)>
    <!--====================== Location ==================================-->
    <!ELEMENT     Location          (Adress+, Unit*, Business)>
    <!--====================== Unit ==================================-->
    <!ELEMENT     Unit          (UnitNo, UnitName?, Status, HQ, SNI1?, SNI2?, SNI3?, WorkPlaceNo, WorkPlaceName?)>
         <!ELEMENT     UnitNo          (#PCDATA)>
         <!ELEMENT     UnitName     (#PCDATA)>
         <!ELEMENT     Status          (#PCDATA)>
         <!ELEMENT     HQ          (#PCDATA)> <!-- Values can be yes or no-->
         <!ELEMENT     SNI1          (#PCDATA)>
         <!ELEMENT     SNI2          (#PCDATA)>
         <!ELEMENT     SNI3          (#PCDATA)>
         <!ELEMENT     WorkPlaceNo     (#PCDATA)>
         <!ELEMENT     WorkPlaceName     (#PCDATA)>
    <!--====================== Business ==================================-->
    <!ELEMENT     Business          (POI?, InfoRow*)>
    <!--====================== POI =======================================-->
    <!ELEMENT     POI          (POIId+)>
         <!ELEMENT     POIId          (#PCDATA)>
    <!--====================== InfoRow ===================================-->
    <!ELEMENT     InfoRow          (Number,Heading*,Name?, Address?, Text?, HomePageAddresses?, EMailAddresses?, Subscriptions?)>
         <!ELEMENT     Number          (#PCDATA)>
    <!--====================== Heading =================================-->
    <!ELEMENT     Heading          (LevelNo, LevelName)>
         <!ELEMENT      LevelNo          (#PCDATA)>
         <!ELEMENT     LevelName     (#PCDATA)>
    <!--====================== Name =================================-->
    <!ELEMENT     Name          (Full,First?,Middle?,Last?)>
         <!ELEMENT      Full          (#PCDATA)>
         <!ELEMENT     First          (#PCDATA)>
         <!ELEMENT     Middle          (#PCDATA)>
         <!ELEMENT     Last          (#PCDATA)>
    <!--====================== Address ==============================-->
    <!ELEMENT     Address               (Type, StreetInfo?,TextBeforeZipCode?,ZipCode?,City?,AReg?,
                             Municipality?,County?,Country?,Coordinate?)>
         <!ELEMENT     Type               (#PCDATA)>     
         <!--====================== StreetInfo ==============================-->
         <!ELEMENT     StreetInfo          (PostBox?, StreetName?,StreetNumber?,Entrance?, CO?)>
              <!ELEMENT     PostBox               (#PCDATA)>
              <!ELEMENT     StreetName          (#PCDATA)>
              <!ELEMENT     StreetNumber          (#PCDATA)>
              <!ELEMENT     Entrance          (#PCDATA)>
              <!ELEMENT     Co               (#PCDATA)>
         <!ELEMENT     TextBeforeZipCode     (#PCDATA)>
         <!ELEMENT     ZipCode               (#PCDATA)>
         <!ELEMENT     City               (#PCDATA)>
         <!ELEMENT     AReg               (#PCDATA)>     
         <!ELEMENT     Municipality          (#PCDATA)>
         <!ELEMENT     County               (#PCDATA)>
         <!ELEMENT     Country               (#PCDATA)>
         <!--====================== Coordinate ==============================-->
         <!ELEMENT     Coordinate          (Level, xCor,yCor)>
              <!ELEMENT     Level          (#PCDATA)>
              <!ELEMENT     xCor          (#PCDATA)>
              <!ELEMENT     yCor          (#PCDATA)>
    <!--====================== Text =================================-->
    <!ELEMENT     Text          (InfoText+)>
         <!ELEMENT     InfoText          (#PCDATA)>     
    <!--====================== HomePageAddresses =================================-->
    <!ELEMENT     HomePageAddresses          (HomePage+)>
         <!ELEMENT     HomePage          (#PCDATA)>     
    <!--====================== EMailAddresses =================================-->
    <!ELEMENT     EMailAddresses          (EMail+)>
         <!ELEMENT     EMail          (#PCDATA)>     
    <!--======================= Subscriptions ===========================-->
    <!ELEMENT     Subscriptions     (ClassifiedCode?, Type, TelAddress, TextAfter?)     >
         <!ELEMENT     TelAddress     (#PCDATA)>
         <!ELEMENT     TextAfter     (#PCDATA)>
    <!ELEMENT     Card_Count               (#PCDATA)>
    <!--==============================================================-->
    <!-- History:          2002-06-06 created this file -->
    <!--                2002-07-04 Added Source on Coordinates -->
    <!--               2002-08-15 Changed Source to Level -->
    <!--               2002-08-15 Changed RegName to LegalName-->

    I've got the same problem,
    How to define the directory in witch the DTD is????
    We need something like DBMS_XMLSave.setdirectoryDTD, that doesn't exist.
    ben
    ERREUR ` la ligne 1 :
    ORA-29532: appel Java arrjti par une exception Java non interceptie :
    oracle.xml.sql.OracleXMLSQLException: Error opening external DTD
    'annoncesv22.dtd'.
    ORA-06512: ` "SDEV.SIMPORT", ligne 205
    ORA-06512: ` ligne 1

  • XML Validation using custom DTD file

    Well, I thought that my problem is about to be a trivial one, but now, I don't think so. I have to develop XML-based protocol over HTTP. XML Document doesn't contain any reference to DTD, but I have some DTDs. I want to validate my XML messages in real time and I want to find some library that allows to do something like that:
    SomeXmlValidatingParser s = new SomeXmlValidatingParser(InputStream dtdFileStream);
    for(;;)
        InputStream is = message.recive();
        DocumentObject = s.parseAndValidate(is);
    }So, the issue is to pass my custom DTD file (it is already loaded to memory) into validating parser.
    So, which library have such functionality? And if there are some, could you be so kind to advice some of them?

    Well, I've just realized that JDK 1.5 has standard way to validate XMLs using XSD schemas. Ok. But look at the sample
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:import namespace="http://www.w3.org/XML/1998/namespace"
            schemaLocation="http://www.w3.org/2001/xml.xsd" />
      <xs:element name="birthdate">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="month" type="xs:string" />
            <xs:element name="day" type="xs:int" />
            <xs:element name="year" type="xs:int" />
          </xs:sequence> 
        </xs:complexType>
      </xs:element>
    </xs:schema>Every time I process this schema, it goes to w3c.org... And I wonder if it cause some problems if I delete
      <xs:import namespace="http://www.w3.org/XML/1998/namespace"
            schemaLocation="http://www.w3.org/2001/xml.xsd" />

  • How to convert cXML dtd files into xsd format and use them into BPEL application

    Hi,
    In my BPEL application I have to use cXML dtd files by converting them into xsd format.
    I have used 'Microsoft Visual Studio' for converting cXML.dtd file into xsd format, for this 1 dtd file I am getting three xsd files (cXML.xsd, cXML1.xsd and cXML2.xsd).
    Please check this once and let me know
    1. why I am getting three xsd files for one dtd file,
    2. how can I use cXML.xsd file in my application, do I ll have to use all the three files in my BPEL app and
    3. what should I include in main xsd file (cXML.xsd) to import other two xsd files.
    kindly check this once and let me know your suggestions .
    Thanks

    Hi,
    While downloading the cXML dtd there will be example xml files. Using this xml's we can generate xsd.
    Regards,
    KANN.

  • Where can I download weblogic 9.0 DTD file

    Where can I download weblogic 9.0 DTD file?
    such as the DTD for weblogic-ejb-jar.dtd.
    Thanks
    Zhong

    Hi Kiran,
    You can find the download for WLS 9.2.x in the Oracle E-Delivery - http://edelivery.oracle.com, for more information check out the below links
    Topic: Download and Install Instructions - Red Hat Enterprise Linux 5.0
    http://download.oracle.com/docs/cd/E13196_01/platform/suppconfigs/configs/rhelinux/rhel50_92.html#102158
    Topic: Download and Install Instructions - Red Hat Enterprise Linux 4.0
    http://download.oracle.com/docs/cd/E13196_01/platform/suppconfigs/configs/rhelinux/rhel40_92.html#95950
    Regards,
    Ravish Mody
    http://middlewaremagic.com/weblogic/
    Come, Join Us and Experience The Magic…

  • SaxParser can't find dtd file

    I've done XML for a while but I've never used DTD files before. Now I'm tryign to parse a XML file
    that has the following tag in it:
    <!DOCTYPE Obj SYSTEM "s4.dtd">
    The parser keeps giving me this exception:
    org.xml.sax.SAXParseException: File "s4.dtd" not found.
    I have placed the file s4.dtd in the same directory as the xml file. I'm using JBuilder (please don't say that was my first mistake!! (-:) and I've put a copy of the file in my "Working directory" but I still get the same error. I've tried specifying an absolute path in the xml file in different ways like this:
    <!DOCTYPE Obj SYSTEM "c:\xml\s4.dtd">
    <!DOCTYPE Obj SYSTEM "c:\\xml\\s4.dtd">
    <!DOCTYPE Obj SYSTEM "c:/xml/s4.dtd">
    but they don't seem to make any sense to it.
    Please help!!!!

    The DTD needs to be in the same file as the XML file if you are going to specify it that way. You say you did that, so that probably means the parser can't determine what directory the XML file is in. Perhaps you passed the parser a FileReader or something like that? At any rate, the problem with your other attempts at fixing the DTD reference is that it is supposed to be a URL. Try something like this:
    <!DOCTYPE Obj SYSTEM "file://c:/xml/s4.dtd">
    (You may need file:/// instead of file://, experiment with that too.)

  • DTD files as external Definition

    Hi ,
    Read lot of threads on this which are having same problem ,some of them got solved none of them posted how did they succeded on those.
    i am getting error like Name "ds:Signature" is incorrect, when i tried to inport the .dtd file as external definition,so I did try converting dtd file to XSD ,it is creating the 3 xsd files and none of them are valid each one of them are error.But however the DTD file is valid .
    Using Invoicedetail DTD file for my scenario.
    you can download the file from http://cxml.org
    Please let me knw on this.
    Thanks,
    Madhu

    Hi,
    Here are the errors for the 3 xsd's
    1.     Value 'ds:Signature' is not allowed for attribute 'ref'.
              Hint: A valid value would be 'xml:lang'.
              Error location: xs:schema / xs:element / xs:complexType / xs:sequence / xs:element / @ref
    2.     Value 'ds:Signature' is not allowed for attribute 'ref'.
              Hint: A valid value would be 'xml:lang'.
              Error location: xs:schema / xs:element / xs:complexType / xs:sequence / xs:element / @ref
    3.                   Value 'xades:Identifier' is not allowed for attribute 'ref'.
              Hint: A valid value would be 'xml:lang'.
              Error location: xs:schema / xs:element / xs:complexType / xs:sequence / xs:element / @ref
    these errors are coming in xml spy when i tried to validate .
    Thanks,
    Madhu
    Edited by: madhu204 on Jul 23, 2009 4:54 PM
    Edited by: madhu204 on Jul 23, 2009 4:55 PM

  • Exception while importing waveset.dtd file in IDM

    Hi .
    I am trying to import waveset.dtd file in IDM am i got exception
    " An error occurred importing the file, although some of the file data may have been processed. ==> com.waveset.exception.XmlParseException: XML Error: 11:3: The markup in the document preceding the root element must be well-formed."
    actually i am trying to add Cc field for email template.

    I have never come across the scenario to import the DTD file?
    For email , you have to modify the template to incorporate the cc field

  • How to convert DTD files into XML(template) by using Java ?

    I am a beginner to java,and want to convert a random DTD file
    into a XML template(having no data).
    any guys can give me some suggestions ?
    thanks very much

    DTD allow you to validate a XML file.
    To do so, you can use API such as dom or xalan.
    To transform an XML file from a vocabulary A to vocabulary B, you have to write a XSLT style sheet, and use xerces to perform the transformation.
    Using tools such as XSL-FO, you can transform your XML into PDF.

  • Import XML/DTD files into iStudio

    I am having Spect Generator files with extension .ecs files
    I need to import these files into iStudio to create commonview. iStudio accepts either XML or DTD formats
    How can I convert these files to XML or DTD files without losing the Structure layout or EDI format ?
    Let me know ASAP.

    Hi,
    I don't know what ".ecs" files are, but it sounds that you may need to create / use D3L dtd's.
    Please look at
    Oracle Application Server InterConnect User’s Guide 10 g (9.0.4)
    Part No. B10404-01
    and especially Appendix B for more information.
    You can download it from
    http://download-east.oracle.com/docs/cd/B10465_01/integrate.904/b10404.pdf

Maybe you are looking for

  • How do I burn a backup DVD of my music on my computer

    How do I burn a backup DVD of my music on my computer?

  • Mass maintenance of 3000 materials

    Dear all, My requirement is to maintain the safety stock values for 3000 materials thru' mass maintenance MM17 for a <b>SINGLE</b> plant. The values for safety stock are 1 & 2 and this will be applied to all the materials. Pls let me know anybody how

  • Show Pop Up Menu

    I'm having trouble accessing the "show pop up menu" option in the behaviors + palette. It's greyed out. I am just trying to create a pop-up menu for some links. Here's what I'm doing: 1. highlight the word that will be the link 2. type # in the link

  • If I download the new version it says it will block my security package?

    My Mozilla keeps crashing and it was suggested that I download the new version but when I tried that it said it would block my Norton Security package that is provided by my internet service. I don't want to do this Is there a way around it?

  • How to install CPAN modules

    OS Ver: 10.8.5 I'm just starting to mess around with Perl on my mac, and went to install WWW::Mecahnize, only to find that it would fail via CPAN. After a little digging, i found i needed Xcode command line utilities installed. After that, i found di