XML/DTD to be converted to XSD

Hi ,
I have requirement that i am getting xml file as input which i need to read through inbound file adaptor and write another delimited file.
The challenge i am facing is i am not able to transmit xml file to xsd file trough native format builder.
Can you please provide solution for generating xsd file for xml files.
Note: There is format type called "DTD to be converted to XSD" under native format builder wizard.Is it like that first we need to convert xml to DTD then XSD?
If so can you please geve me small example of demonstrating these steps,because whenever i try with sample dtd file i am getting error: "No element found in DTD Specified"
My sample file "note.dtd" is <?xml version="1.0"?>
<!DOCTYPE note [
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend</body>
</note>
Thanks in advance.

U can use Document Editor tool to convert XML file to DTD. The steps are
File-->Import-->Chose DTD from XML file option and give ur file as input-->It will convert ur XML file into ECS file-->File-->Export-->select XML DTD option and this will convert the ECS file to DTD file
U can use BPEL to convert DTD file to XSD. The steps are
Tools-->Convert DTD to XSD and give ur DTD file as Input-->It will convert ur DTD file to XSD file
I hope it will help.
Thanks,
Saravana
Edited by: user10635261 on Nov 20, 2008 9:41 AM

Similar Messages

  • How to convert from .XSD to .DTD?

    Hello.
    From my Physical Schema i use the JDBC Url read XML files.
    I have a .xsd definition file that i want to use reading my .xml file, and get it into my database.
    As far as i can see i will have to convert the .xsd file to a .dtd file to be able to use the definition file. I can't use the .xsd file directly - right?
    How can i do this operation - transforming my .xsd file to a .dtd file in Data Integrator? Or do I need another tool to do this?
    Thanks for all answers.
    bi

    No, you CAN use XSD file directly. in th URL for your xml file you specify in the /d= parameter the name of the DTD or XSD file which defines the file. No need to convert or anytthing else.

  • How can i register my xml file when i have no xsd ?

    For given xml data.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE metadata SYSTEM "http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd">
    <metadata>
    <idinfo>
    <citation>
    <citeinfo>
    <origin>MRF</origin>
    <pubdate>20040512</pubdate>
    file is large this is a sample.
    I am inserting using xmltype without registering schema.
    using this method,it is working fine.
    CREATE TABLE xml_table OF XMLType;
    INSERT INTO xml_table
    VALUES (XMLType(bfilename('XMLDIR','Test_xml.xml'),
    nls_charset_id('AL32UTF8')));
    Can you suggest a way to register above xml using below mentioned method given in samples?
    BEGIN
    DBMS_XMLSCHEMA.registerschema('http://www.oracle.com/person.xsd',
    '<schema xmlns="http://www.w3.org/2001/XMLSchema"' ||
    ' xmlns:per="http://www.oracle.com/person.xsd"'
    etc. and
    CREATE TABLE foo OF XMLType
    XMLSCHEMA "http://www.oracle.com/person.xsd" ELEMENT "person";
    Can I register schema for my xml file which does not have xsd format this way, if yes how??
    Please suggest.

    The main purposes of registering a schema, depending upon how you register it, are to create objects within Oracle to have the XML stored in and to use to validate XML against.
    If you are trying to validate the XML, then you need to register the DTD from http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd. (If possible, I would suggest to convert the DTD to an XSD before registering it given that DTDs are outdated now)
    You can find examples of registering schemas in the FAQ at the {forum:id=34} forum. Assuming your DB version meets the requirements, any registration questions should be posted in that forum. You can also search that forum for registerschema and find many examples as well.

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • SSIS "XML Source Adapter" can't make XSD location an expression

    I am using the "XML Source Adapter" in an SSIS package.
    I notice that although you can specify the XML filename as an expression, the XSD appears to have to be a fixed file path.
    This is a problem for me since the path for the XSD is different in my development than it will be in production (in production it's on drive E:, which I don't have).
    I'd like to have the file location specified in the config file, but since I can't make it an expression how can I do that?
    Also, since they don't have Connection Managers I can't switch DelayValidation on.
    Thanks.

    Hi John,
    Here is my pevious post
    I have about 400 xml files with me and all this data has to be loaded in about 30 tables, Basically have 30 different varities of xml files and matching 30 xsd files. We were trying to load all this using "Data Flow Task" and "XML Source".  Using
    FOR Each Loop passing appropriate XML File and XSD to Data Flow task and load it in one shot. Rather than having 30 different Data Flow tasks. Is there any other way, we can accomplish this task using a loop and dynamically passing the different files.
    You have suggested to follow the URL
    There's some example code here for package generation here:
    http://sqlsrvintegrationsrv.codeplex.com/releases/view/17647
    Everywhere I see, they are suggesting to use Flat File or Excel data examples. Do you have any posting that can help me to use XML file as a dynamic input file for XML Source.
    If anyone has any code samples how we can use XML files as dynamic source for XML Source task to import data into SQL Sever, that would be really appreciated.
    Thanks

  • Converting from xsd:string into soapenc:string

    Hi.
    I was successfull in invoking an axis web service with complex type definitions.
    However, when building and deploying the process flow, I get a warning message as follows:
    " [bpelc] [Warning]: Trying to assign incompatible types
    [bpelc] [Description]: in line 53 of "C:\eclipse\workspace\ComplexTypeWSFlow\TimeSheetProcess.bpel", <from> value type "{http://www.w3.org/2001/XMLSchema}string" is not compatible with <to> value type "{http://schemas.xmlsoap.org/soap/encoding/}string".
    [bpelc] [Potential fix]: Please make sure that the return value of from-spec query is compatible with the to-spec query.
    [bpelc]
    [bpelc] [Warning]: Trying to assign incompatible types
    [bpelc] [Description]: in line 58 of "C:\eclipse\workspace\ComplexTypeWSFlow\TimeSheetProcess.bpel", <from> value type "{http://www.w3.org/2001/XMLSchema}string" is not compatible with <to> value type "{http://schemas.xmlsoap.org/soap/encoding/}string".
    [bpelc] [Potential fix]: Please make sure that the return value of from-spec query is compatible with the to-spec query."
    My question is:
    How can I convert between xsd:string and soapenc:string types when using the "assign" activity so I don't keep getting this warning message?
    Regards

    Hi Paulo,
    This warning has been fixed in recent builds. eventhough soapenc:string is different type, it extends xs:string and its simple content. the compiler shouldn't display warnings for this case.

  • XML DTD - Table or Object

    Dear all,
    Do you have any guideline or good example to model db tables for nested Structure of XML DTD?
    How can I create table or objects for following XML DTD?
    <!ELEMENT book (title, author, Chapter*)>
    <!ELEMENT title (#PCDATA)>
    <!ELEMENT author (#PCDATA)>
    <!ELEMENT Chapter (content, body?)>
    <!ELEMTNS content (#PCDATA)>
    <!ELEMENT body (#PCDATA)>
    null

    i hope that this exampel of nested table will help you
    create or replace type test1_obj as object (num1 number(4),num2 number(4));
    create type test1_obj_teble as table of test1_obj;
    create table test101(csec number(4),tnum number(4),ditals test1_obj_teble) nested table ditals store as test1_ditals;
    /

  • Tool to create XML definition, a tool for creating XSD

    I need a tool to create XML definition, a tool for creating XSD.
    I was trying to do this with Oracle packages. But again there are some problems. Could you tell me which one, I should use?
    Can I do it with the Oracle SQL Developer?

    Hello,
    i get the error message and I don't know, what I can do
    The user have the permissions to use DBMS_LOB package.
    Is it the sofware, do I need a license version tool for XML generation
    SQL> select DBMS_XMLSCHEMA.GENERATESCHEMA( 'HR', 'EMP_DATA' )
    2 from dual;
    select DBMS_XMLSCHEMA.GENERATESCHEMA( 'HR', 'EMP_DATA' )
    ERROR at line 1:
    ORA-00904: "DBMS_XMLSCHEMA"."GENERATESCHEMA": invalid identifier

  • Discrepancy between weblogic-ejb-jar.xml DTD and documentation

    There seems to be a discrepancy between the DTD for the weblogic-ejb-jar.xml file
    and the WLS7 documentation: Which source of information should I treat as
    For example, the WLS7 documentation contains no information on the <idempotent-methods>
    element (and its child elements)
    (There is also a (larger) discrepancy between the weblogic-application.xml DTD and
    the docs - I will post that Q under application deployment)
    Regards,
    Nick

    Yep, I noticed it too. I used DTD, of course.
    "Nick Minutello" <[email protected]> wrote
    in message news:[email protected]..
    >
    >
    There seems to be a discrepancy between the DTD for theweblogic-ejb-jar.xml file
    and the WLS7 documentation: Which source of information should I treat as
    For example, the WLS7 documentation contains no information on the<idempotent-methods>
    element (and its child elements)
    (There is also a (larger) discrepancy between the weblogic-application.xmlDTD and
    the docs - I will post that Q under application deployment)
    Regards,
    Nick

  • Exporting DB data to XML based on a pre-defined XSD

    Hi,
    I am new to PL/SQL and would need some good examples of code how to export database extries into an XML file based on a predefined XSD.
    Input:
    TABLE1
    fields: ID (PK), NAME, X, Y, BLOB
    TABLE2
    fields: ID (FK), DESCRIPTION
    Both tables have a relationships. Inside the BLOB is a saved XML file that also needs to get exported. I would need a sample of SQL or PL/SQL code how to export a BLOB into an XML.
    Thanks!

    Hi,
    You can use dbms_metada built-in package in order to generate database structure(metadata) in an XML file. This package is very complex and flexible. You can get more examples on tahiti.oracle.com or psoug.org as damorgan mentioned.
    As i read from your question, you need to export-extract table rows-entities in a file, simply. You also need a predefined XSD. Once i need to export table data programatically. You can find more utilities by googling. If you wish, you can reach my package here . However it is not completely covers your req. but i also post simple output in order to understand whether it is helpful or not for your requirements.
    Reg.
    PROCEDURE ExportFile
    --oracle directory name
    pis_DirectoryName in VARCHAR2,
    --file name
    pis_FileName in VARCHAR2,
    --table name that will be exported
    pis_TableName IN ALL_TABLES.TABLE_NAME%TYPE,
    --filter criteria,if exists
    pis_WhereCondition IN VARCHAR2 DEFAULT NULL,
    --if table has more columns how fields will be seperated
    pis_FieldDelimiter IN VARCHAR2 DEFAULT ',',
    --row delimiter, CHR(10) for newline
    pis_RecordDelimiter IN VARCHAR2 DEFAULT CHR(10),
    --if some columns will not be included
    pis_ExceptedFieldList IN VARCHAR2 DEFAULT NULL,
    --1 for fields enclosed by ", such as "column_value"
    pin_FieldEnclosedByQuote IN NUMBER DEFAULT 0,
    --if column name will not be included, set as 0
    pin_IncludeColumnName IN NUMBER DEFAULT 0,
    --if field names included
    pis_FieldNameDelimiter IN VARCHAR2 DEFAULT ':'
    SQL> create table t
      2  (
      3  i number,
      4  xml_data blob
      5  );
    Table created.
    SQL>
    SQL> insert into t values (1, rawtohex('
      2  <books>
      3     <book>
      4        <author>bla bla bla</author>
      5        <title>falan filan</title>
      6     </book>
      7  </books>') );
    1 row created.
    SQL>
    SQL> create or replace directory TEST_DIR as 'c:\test';
    Directory created.
    SQL> BEGIN
      2    UTL_EXP.ExportFile(pis_DirectoryName  => 'TEST_DIR',
      3                       pis_FileName       => 'test.xml',
      4                       pis_TableName      => 't',
      5                       pis_WhereCondition => 'i = 1');
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    C:\Users\Mennan>type c:\test\test.xml
    1,
    <books>
       <book>
          <author>bla bla bla</author>
          <title>falan filan</title>
       </book>
    </books>,
    C:\Users\Mennan>

  • Any tool that generates a sample XML with some data given an xsd

    hello friends, is there any free tool availaible that generates a sample XML with some data given an xsd . please do let me know

    got it guys, xmlspy and stylus studio , neways thanks

  • Product-sku-output-config.xml - Is there a schema definition (XSD or DTD)?

    For the product-sku-output-config.xml file (used to define the set of product and sku attributes that are sent to Endeca from ATG as part of the Baseline Index process, as defined in chapter 4 of the ATGEndecaIntegrationGuide.pdf, 10.1.2 version), is there a schema definition (XSD or DTD) available?
    The format used by product-sku-output-config.xml seems similar to, but not the same as, the format described by http://www.atg.com/dtds/search/indexing-dependency-schema.dtd. For example, p35 of the ATGEndecaIntegrationGuide.pdf gives an example of a product-sku-output-config.xml with a "properties" child element of the top-level "item" element; per that indexing-dependency-schema.dtd, that isn't allowed. (Per that DTD, it should be either "meta-properties" or "text-properties", not "properties".)
    More generally, I'm wondering if there's place that fully defines what can go into the product-sku-output-config.xml file.
    I'm also interested this same question for the category-dim-output-config.xml file.
    Thanks,
    -Jon

    For the product-sku-output-config.xml file (used to define the set of product and sku attributes that are sent to Endeca from ATG as part of the Baseline Index process, as defined in chapter 4 of the ATGEndecaIntegrationGuide.pdf, 10.1.2 version), is there a schema definition (XSD or DTD) available?
    The format used by product-sku-output-config.xml seems similar to, but not the same as, the format described by http://www.atg.com/dtds/search/indexing-dependency-schema.dtd. For example, p35 of the ATGEndecaIntegrationGuide.pdf gives an example of a product-sku-output-config.xml with a "properties" child element of the top-level "item" element; per that indexing-dependency-schema.dtd, that isn't allowed. (Per that DTD, it should be either "meta-properties" or "text-properties", not "properties".)
    More generally, I'm wondering if there's place that fully defines what can go into the product-sku-output-config.xml file.
    I'm also interested this same question for the category-dim-output-config.xml file.
    Thanks,
    -Jon

  • Ejb-jar.xml DTD validation error?

    I am attempting to deploy a JAR on App Server 8 PE. The application does not contain any EJBs but I understand that the ejb-jar.xml descriptor is still needed. I am running the app server on Windows XP.
    My issue is as follows:
    I understand that the root element for the ejb-jar.xml file (<ejb-jar>) is required. Since I have no EJBs, I should be able to leave this root element blank (as I have in previoius successful deployments to earlier versions of Sun App Server). When I attempt to deploy, I receive the following DTD Validation error via the admin console:
    The content of element type "ejb-jar" is incomplete, it must match "(description?,display-name?,small-icon?,large-icon?,enterprise-beans,relationships?,assembly-descriptor?,ejb-client-jar?)".
    Am I missing something?
    My ejb-jar.xml file looks like:
    <!DOCTYPE ejb-jar PUBLIC
         "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
         "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    </ejb-jar>
    Many thanks in advance to any assistance...

    I am attempting to deploy a JAR on App Server 8 PE.
    The application does not contain any EJBs but I
    I understand that the ejb-jar.xml descriptor is still
    needed. I am running the app server on Windows XP.
    My issue is as follows:
    I understand that the root element for the
    ejb-jar.xml file (<ejb-jar>) is required. Since I
    have no EJBs, I should be able to leave this root
    element blank (as I have in previoius successful
    deployments to earlier versions of Sun App Server).
    When I attempt to deploy, I receive the following
    g DTD Validation error via the admin console:
    The content of element type "ejb-jar" is incomplete,
    it must match
    "(description?,display-name?,small-icon?,large-icon?,e
    nterprise-beans,relationships?,assembly-descriptor?,ej
    b-client-jar?)".
    Am I missing something?
    My ejb-jar.xml file looks like:
    <!DOCTYPE ejb-jar PUBLIC
    "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
    s 2.0//EN"
         "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    </ejb-jar>
    Many thanks in advance to any assistance...I hav tried this and it is working
    <?xml version="1.0" encoding="UTF-8" ?>
    <ejb-jar
    xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
    version="2.1">

  • 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

  • Help needed with binary data in xml (dtd,xml inside)

    I am using the java xml sql utility. I am trying to load some info into a table.
    my.dtd:
    <!ELEMENT ROWSET (ROW*)>
    <!ELEMENT ROW (ID,JPEGS?)>
    <!ELEMENT ID (#PCDATA)>
    <!ELEMENT DESCRIPTION EMPTY>
    <!ATTLIST DESCRIPTION file ENTITY #REQUIRED>
    <!NOTATION INFOFILE SYSTEM "Files with binary data inside">
    <!ENTITY file1 SYSTEM "abc.jpg" NDATA INFOFILE>
    xml file:
    <?xml version="1.0" standalone="no"?>
    <!DOCTYPE ROWSET SYSTEM "MY.DTD">
    <ROWSET>
    <ROW>
    <ID>1272</ID>
    <DESCRIPTION file="file1"/>
    </ROW>
    </ROWSET>
    I am using the insertXML method to do this. However, the only value that gets loaded is the ID. abc.jpg is in the same directory where I ran the java program.
    Thanks in advance.

    Sorry! wrong dtd. It should read this instead:
    my.dtd:
    <!ELEMENT ROWSET (ROW*)>
    <!ELEMENT ROW (ID,DESCRIPTION?)>
    <!ELEMENT ID (#PCDATA)>
    <!ELEMENT DESCRIPTION EMPTY>
    <!ATTLIST DESCRIPTION file ENTITY #REQUIRED>
    <!NOTATION INFOFILE SYSTEM "Files with binary data inside">
    <!ENTITY file1 SYSTEM "abc.jpg" NDATA INFOFILE>
    null

Maybe you are looking for

  • Oracle OpenWorld 2010

    All, I will be at Oracle OpenWorld this year. Just wondering if any regular posters on this forum will be there as well? If so, reply to this thread and we can exchange contact info. I will be presenting at the following session: Session ID: S317033

  • No progress bar while playing tracks!

    As per the screenie. This track was playing. No progress slider. I looked in settings and couldnt find an option to switch it back on. I noticed gone a couple of days ago. Any thoughts? Cheeers Ross

  • Select menu problem

    Hi can anyone tell me whats wrong with this: I have select menu in my jsp as follows: <select name="selectRowCount" size="1"  onchange="document.forms['search'].submit()" >      <option value="/devices/search.faces?rowsPerPage=5">5</option>      <opt

  • "actual size" isn't in Pages

    In pages, when I view "actual size" I get about 75% on the monitor (measuring the rulers). Can this be calibrated? Thanks.

  • IMovie '11 Audio & Video Out of Sync

    Hey guys like a lot of other people, I am having a problem with my audio & video synchornization with iMovie '11 on a 2011 Macbook Pro. The video: Using iMovie '11 9.0.8-  It is 1 hour and 53 minutes long recorded through the Facetime HD Camera (1280