Dtd to xsd

i wish to convert a dtd to an xsd. how would i go about this? would I use xsl?

You can't use XSL because DTDs AREN'T valid XML. (That's one reason why XSDs have come along.) DTD elements are either PCDATA or DATA - there's no information about types in there.
No way around it: unless one of the tools on the market support such a thing, you'll have to get into your text editor and start hammering away on it. - MOD

Similar Messages

  • Converting XML file to DTD or XSD file

    Hi everyone,
    We're currently doing an IDOC to File. The file should be in XML format. Right now, we have a sample XML file. We need to convert the file to DTD or XSD and then upload this in XI to be able to get it structure. We've tried different conversion tools to do this, however, the converted DTD/XSD file still has errors when we load it to XI. What we're thinking is to create a data type to achieve this. These are some of the fields in the file.
    <messageHeader creationDate>
    <catellae:gTTSDataDelivery creationDate="X" (...)>
    */<catellae:(…)>/<txnId>
    */<catellae:(…)>/<items>/<item>/<quantity>
    */<catellae:(…)>/<items>/<item>/<unitOfMea>
    */<catellae:(…)>/<items>/<item>/<prodDesc>/<matType>
    */<catellae:(…)>/<shipToAddress>/<nameAndAddress>/<city>
    */<catellae:(…)>/<shipToAddress>/<contactInformation>/<communicationChannel (…)
    It seems that there are more than 3 nodes. And in XI, only three nodes are allowed. Could you tell us how should we create the data type for this? Thanks in advance!

    Hi Mariel,
              Refer to the below link for conversion of XML to Xsd using Altova XML Spy.
    Re: data type for xml file
    For altova free trial Download:
    http://www.altova.com/download.html
    Please let me know if u need furthur information.
    Thanks,
    Bhargav.
    Note:Award points if found useful

  • File Adapter - Native XSD - DTD to XSD

    Hello,
    a. I have to read a data file using file adapters, which is sent in the following pattern (dtd below):
    <?xml version="1.0" encoding="US_ASCII"?>
    <!DOCTYPE message SYSTEM "d3l.dtd">
    <message name="ITEM" type="ItemArray" object="ITEM_BO">
    <struct id="ItemRecord">
         <field name="Process_Flag"><limstring delimiter=";"/></field>
         <field name="Item_Number"><limstring delimiter="|"/></field>
         <field name="Attribute2"><limstring delimiter="|"/></field>
    </struct>
    <limarray id="itarray" contchar="*" endchar="!">
         <typeref type="ItemRecord"/>
    </limarray>
    <struct id="ItemArray">
         <field name="ItemLine"><typeref type="itarray"/></field>
    </struct>
    </message>
    b. whose sample data is as below:
    ;P;|00030||TEST1|*;P;|00040||TEST2|!
    c. I am now in the process of designing my native xsd:
    i. I can either use convert dtd to xsd (or)
    ii. create my own sample schema definition which is similar to the above data structure
    In step (i), I could not convert the dtd to xsd, due to reference to d3l.dtd file.
    If anyone can advise where this d3l.dtd file can be found and where I should place it in 'SOA' it would be really helpful.
    In step (ii), I find that through the wizard I am able to create simple csv file styles, but not able to create the above data structure due to different delimiters (; and |) and also due to delimiter-embedding of data.
    It would be really helpful if someone can advise on how I must proceed with this issue.
    Thanks,
    Santhosh

    Hello Ramana,
    As for step one, the 'd3l.dtd' is a file which all Oracle Interconnect DTDs look up to. I am not able to locate it.
    As for step two, the data file the structure is of the following pattern :
    i. entire data is in single line of the data file..
    ii. first element will be embedded with semi colon
    iii. the other elements inside pipes
    iv. end of record is indicated using *
    v. end of file is indicated using !
    These are the rules based on which the data file is built.
    I don't have much experience in creating xsd (except for simple native xsds that I have created using the native xsd wizard of Jdev-BPEL).
    Using the native XSD wizard that is available with JDev-BPEL, I trust I cannot create complex data structure which is of the above pattern.
    If there is a good tool/method through which I can create the xsd as per the above listed rule structure, please advise.
    Thanks,
    Santhosh

  • Convert DTD to XSD

    Hi,
    I hold a DTD of OAGIS 7.2 and I need convert this to an XSD for my BPEL process to consume. I would like to know if there is any editor which helps in this conversion. I'd tried using XMLSpy but that doesnt give me the correct version(I mean the tree structure is not correct). I tried the native format builder but that doesnt help as my DTD has references to other DTDs as well. Can someone point me to a method of converting DTD to XSD?
    Thanks in advance,
    Gayathri

    Thanks Marc. It works now.
    The option in JDev Tools-> Convert DTD to XSD also creates XSD. But one thing I dont understand is that if I try to validate the generated XSD in XMLSpy it throws some errros, but when imported into the BPEL process, it parses successfully. If someone has an answer to it, please lemme know.
    Thanks,
    Gayathri

  • External dependency on remote dtd and xsd files

    The question bugs me for years, please help.
    Should we download external dtd and xsd files declared for web.xml and faces-config.xml and pack them in the war files to eliminate the external dependency.
    e.g.
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
    http://java.sun.com/dtd/web-facesconfig_1_0.dtd
    Thanks

    Hi Srikanth,
    Have you done this?
    SAP HELP
    <i>You want to import an XSD document myMessage to the Integration Repository; this document references three other XSD documents myStr1, myStr2, and myStr3 by using the <include> statement. One option is to first import myMessage. The External References tab page then shows that three documents are referenced and that these documents are not yet in the Integration Repository.  Next, create further external definitions for myStr1, myStr2, and myStr3 in the same namespace and specify the source for each of these documents. If the source is not contained in the document itself, you will find it in the referencing document. If you refresh the display of the external definition for myMessage, the External References tab page shows that the documents have been found in the Integration Repository. You can then navigate to the other referenced external definitions in the Integration Repository by double clicking.</i>
    Also, try activating just in case you haven't.
    Regards
    Vijaya

  • Is site STE file DTD or XSD available?

    Dreamweaver enables you to export your site definition into a
    special file with a .ste extension. You can then share your site
    definition with other developers by allowing them to import the
    .ste file to recreate the site on their machines.
    Do you know where the DTD or XSD specification for how the
    .ste file is structured?

    The *.ste file is only meaningful to DW. But you can open one
    and look at
    its structure. It's a bog-standard XML file....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "losWebFXs" <[email protected]> wrote in
    message
    news:gcfrbq$jnq$[email protected]..
    > Dreamweaver enables you to export your site definition
    into a special file
    > with
    > a .ste extension. You can then share your site
    definition with other
    > developers
    > by allowing them to import the .ste file to recreate the
    site on their
    > machines.
    >
    > Do you know where the DTD or XSD specification for how
    the .ste file is
    > structured?
    >

  • DTD and XSD Validation for xml file

    hi kindly reply to this mail guru'ssss
    i am facing a problem in parising a xml file against dtd and xsd.
    i have the dtd which contains only enitities that can be present in the xml file and the xsd file for validation against elements and attribute.
    when DTD is present then it is throwing errors like the elements should be declared.
    when i take out the doctype line and validate against schema its throwing the error that particular entity is not found or declared.
      public Vector validateSchema(String SchemaUrl, String XmlDocumentUrl)  
          SAXParser parser =new SAXParser();
         try{
             //parser.setNamespaceAware (true);     
             //parser.s
             parser.setFeature("http://xml.org/sax/features/validation",true);
             parser.setFeature("http://apache.org/xml/features/validation/schema",true);
             parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
            // parser.setProperty("http://xml.org/sax/properties/declaration-handler", new DTDHandl());
             parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",SchemaUrl);
            // parser.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
            // System.out.println(parser.getDTDHandler());
            // UnparsedCache cache = new UnparsedCache();
           //  parser.setDTDHandler(cache);
             InputSource inputSource =new InputSource(new java.io.FileInputStream(new java.io.File(XmlDocumentUrl)));
           //  parser.setDTDHandler(new myDTDHandler());
             //parser.setEntityResolver(new CustomResolver());
         //  parser.setContentHandler(this);
             Validator handler=new Validator();
             parser.setErrorHandler(handler); 
             parser.parse(inputSource);
             if(handler.validationError==true)
               System.out.println("XML Document is not valid");
             else                  
               System.out.println("XML Document is valid");
             for(int i=0;i<ErrorLines.size();i++){
                 System.out.println(ErrorLines.elementAt(i));
       }catch(java.io.IOException ioe){  
         System.out.println("IOException"+ioe.getMessage());   
       }catch (SAXParseException e) {
         System.out.println("SAXParseException "+e.getMessage());   
      }catch (SAXException e) {
         System.out.println("SAXException"+e.getMessage());   
         return ErrorLines;
    what could be soln to this.

    Hi
    Venky_Ferrari.
    Based on your description, your case related to XMLXSD, SO I will move your thread to
    Data Platform Development > XML, System.Xml, MSXML and XmlLite      
    forum for better support.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • DTD 2 XSD

    Hello,
    how can i convert a DTD into an XSD easily?
    (i want to use JAXB .. therefore i need an XSD but only have a DTD)
    thx

    I put "convert dtd to schema" into this Internet search engine I use for finding things out. It suggested that Stylus Studio and Altova both have that capability. Looked there might be some other possibilities as well.

  • Converting dtd to xsd using java

    Hi,
    please help me i want to convert a dtd file to xml shema file how can i do it using java binding with xml or any api for thise. please send examples if any
    Thanks in advance
    Lokanath
    Message was edited by:
    Akilesh

    I've never used it, but there's this:
    http://jakarta.apache.org/poi/

  • How to convert XML file into DTD or XSD

    Hi Folks,
    This is the output structure I need to get. My interface is file to file. Can u please let me know How do I create a data type or any XSD to get below Structure.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <Command xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Command.xsd">
    - <WriteTagData readerID="EasyDP">
    - <Item>
    - <FieldList format="C:\Documents and Settings\wlee\Desktop\Format_4A.btw" jobName="Test1" quantity="1">
      <Field name="PlantNo">4012</Field>
      <Field name="PlantName">ANE</Field>
      <Field name="SKU">12000001</Field>
      <  </FieldList>
      </Item>
      </WriteTagData>
      </Command>
    Please help me How would I create Data type for this. Your help is highly apreciated
    Thanks,
    Enivass

    Hi Enivas,
    >>>>>>>>>Please help me how would I delete ns0.
    For  remove ns0,  you have to do use XMLAnonymizerBean module  in adpater module (In Communication channel).
    Insert the XMLAnonymizerBean before the CallSapAdapter .
    The module name u2018CallSapAdapteru2019 is default one that can be left as it is.
    Module Name : AF_Modules/XMLAnonymizerBean
    Type: Local Enterprise Bean
    Module Key: 0  
    Add Parameters in the Module Configuration
    2.       Module Key: 0
    Parameter Name: anonymizer.acceptNamespaces
    Parameter Value: <namespace> u2018u2019  
    Enter a list of namespaces and their prefixes that are to be kept in the target XML document and to result a namespace without a prefix, enter u2018 u2018 (two single quotation marks).   In your case like namespace http://www.w3.org/2001/XMLSchema-instance follow with two single quotation marks.
    3.       Module Key: 0
    Parameter Name: anonymizer.quote
    Parameter Value: u2018
    Here specify the character to be used to enclose the attribute values.  The default value is u2018.  
    When scenario is executed, the target message contains the namespace with no prefix.  
    Then, you are not facing any issue in target messages.
    Regards,
    Rajesh

  • 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

  • How to add dtd tag into cXML xsd

    HI All,
    I have a requirement in which I have to use cXML and as all of you know that we cannot directly import the cXML.dtd into SAP so I have converted the dtd into xsd.
    User is sending the data in this format.
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'no'?>
    <!-- Oracle eXtensible Markup Language Gateway Server  -->
    <!DOCTYPE cXML SYSTEM "cXML.dtd">
    <cXML version="1.2.007" payloadID="2010-11-09-12-07-21.60004397:0:4724.249819289270901871044542787156965720568@" timestamp="2010-11-09T12:07:21+01:00" xml:lang="en">
    As you can see they are sending <!DOCTYPE cXML SYSTEM "cXML.dtd"> in the xml and because of this PI is unable to process the message and generate the following error.
    <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_mm_cXML_Order_to_IDOC_ORDERS02_SGS_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Failed to load resource from the context classloader of the current thread! Loading from classloade~</SAP:Stack>
    Can any body please tell me how to resolve this issue.
    Thanks,
    Iqbal

    Please check this link
    XML issue
    Error log on http request from business connector (BC)

  • XDP/XFA XSD or DTD

    Where can I find the XDP or XFA DTDs or XSDs?
    There is a dead link to the XFA DTD at W3.org.
    If there is a better forum to ask this question please let me know.
    Thanks,
    John

    Hi John,
    You'll have to forgive Leonard! He gets paid by the post and so he just posts enough information to get credit.
    Anyhoo, the link that he provided will eventually lead you to what you are really looking for, but most people would give up before they found them. The schemas are actually attached to the pdf at the link below. Nice huh? Not really, but Adobe likes to make it hard to find stuff so that you have to call Leonard for support.
    Here's the link:
    http://partners.adobe.com/public/developer/en/xml/xfa_spec_2_7.pdf

  • Xsd and dtd: which one will overrule

    Hi,
    if I have both DTD and XSD, and the rules in them are conflicting (say: the DTD indicates that an element is mandatory and the XSD is indicating that the element is optional): which one will overrule?
    Kind regards

    An XML document may have only either a DTD or a schema specified.

  • DTD,XSD,XSLT

    Hi Experts,
    I know my question is quite basic and I cn get blogs on that on SDN but I am really very confuse with these terminology.
    Can somebody please explain me What is the diffence between XML File,XLST File,DTD and XSD File.
    Any help would be appreciated.
    Regards,

    Hi
      You have the answer in your question, better to check the sites & learn yourself for better understanding
    to put it shortly & in general terms
    XSD/ DTD - Metadata /skeletol structure for XML
    XML - mark up language, which carry data
    XSLT - stylesheet/  which can parse the XML data
    chck these links
    http://en.wikipedia.org/wiki/XML
    http://en.wikipedia.org/wiki/XSD
    http://en.wikipedia.org/wiki/Document_Type_Definition
    http://en.wikipedia.org/wiki/Xslt
    Regards
    Vishnu

Maybe you are looking for

  • Sharing a dvd studio pro project

    I have a co-worker that recently move to the United States. He works independent for the same company that I am working. We both use Final Cut Studio for our work and it is easy if we both have the same projects with the same raw video so he can do a

  • Photos on my iPad 3 no longer automatically to my Toshiba laptop. What can I do ?

    I bought my iPad 3 in September 2012. Until late 2013 the photos I took wih it appeared automatically on my Toshiba laptop which has   Windows 7 operating system. Then this stopped, and I am not aware of any reason why this should happen  or of how I

  • Solaris 8 and sshfs

    Hi all, I am a newbie. Does Solaris 8 support sshfs?

  • How do I fix a recorded audio track that is clipped?

    HELP! I am new to Garageband and I ran into a problem last week while recording an audio message. When I began recording the audit message with Garageband I noticed that the input signal level was so high that it was constantly being clipped. I could

  • IPhone application that...

    Has a developer created an iphone application that lets you change the background and/or icons on the phone yet?? I saw somebody (long before the 3G iPhone was around) that had a jailbroken iphone that could change the background and icons. I was won