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/

Similar Messages

  • Convert Pojo to XSD using Java

    Dear Sir,
    how to convert POJO to XSD format using Java...? give me some clue about conversion....
    Thank you,
    Boss134

    XSD is XML schema definition. You probably want to serialize to XML.
    Find in the Javadoc [http://java.sun.com/javase/6/docs/api/] the JAXBContext class...

  • 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

  • How to convert jpeg to bmp using java code

    I want to convert a jpeg image to bmp image using java so that any coloured image can be converted to black&white using java. Is there any utility to accomplish this?
    Thanks in advance

    Try out this category on Esus:
    http://www.esus.com/javaindex/j2se/jdk1.2/javaawt/awtgraphics/2dgraphics/images/javaimagetypes/javaimagetypes.html
    Cheers,
    Joris

  • How to convert XML into XSD Using Altova XML Spy

    Hi,
    How to convert XML file into XSD Using Altova XML Spy.
    I want to use that XSD as an External Def in my IR
    Regards
    Suman

    hi
    Following is the path where you could get the PDF's and zip file.
    https://www.sdn.sap.com/irj/sdn/howtoguides?rid=/webcontent/uuid/5024a59a-4276-2910-7580-f52eb789194b [original link is broken]
    please check out the following Heading, and at the bottom corner you will find the download option where you will get the zip file:
    How to Generate XSD Schemas from Existing MDM 5.5 Repositories
    You can download xomlite45.jar from sdn
    copy the jar file to your java installation location like c:>java in
    Java –jar xomLite45.jar MyFile.xml
    then you get correspondig MyFile.xsd
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bf0e8a97-0d01-0010-f0a2-af3b18b7f4eb

  • How to convert JPEG - PNG images using java?

    Hi,
    Has anyone done this before?
    Can you provide me with a sample code or point me to the direction on how this can be done?
    Are there any existing Java technology that supports this?
    Most grateful. Thanks.

    It's should be easy using Java Advanced Imaging (JAI). Try this.
    import javax.media.jai.JAI;
    import javax.media.jai.RenderedOp;
    public class convert {
      static public void main(String[] args) {
        String inName = args[0];
        String outName = args[1];
        RenderedOp source = JAI.create("fileload", inName);
        JAI.create("filestore", source, outName, "PNG", null);
        System.exit(0);
    }

  • Dynamic Java bean classes for XSD using JAVA (not any external batch or sh)

    Hi,
    How can we generate dynamic Java bean classes for XSD (dynamically support All XSD at runtime)?
    Note: - Through java code via only needs to generate this process. (Not using any xjc.bat or xjc.sh from JAXB).
    Thanks

    Muthu wrote:
    How can we generate dynamic Java bean classes for XSD (dynamically support All XSD at runtime)?
    Pretty sure you can't. Probably can do a lot of them with years of work.
    And can probably can do a resonable subset suitable for the business at hand with only a moderate effort.
    Note: - Through java code via only needs to generate this process. (Not using any xjc.bat or xjc.sh from JAXB).The Sun jdk, not jre, comes with the java compiler as part of it. You can create in memory class (I believe in memory) based on java code you create.
    I believe BCEL alllows the same thing (in memory) but you start with byte codes.
    You could just create a dynamic meta data solution as well, via maps and generic methods. Not as fast though.

  • Record Sound From a Microphone and convert it text file using jave applicat

    Hi, I want source code for recording sound from a microphone which is connected to a sound card fixed in my machine,and convert that sound file to a text file , so that i can compare that text later with the command which i have stored already in my computer.How to do this in Java ? If any one could help me in solving this problem, it would be very helpful for me !

    Have you looked into the JSAPI?
    http://www.esus.com/docs/GetQuestionPage.jsp?uid=1471

  • While i press the key its sholud be convert to upper case using java script

    hai
    have a peace day.
    give me a code for
    while i typing a text in lower case but it should be displayed in uppercase format in the textbox
    any body now the code means please help me
    thank u

    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>untitled</title>
        <script language="javascript">
          function setUpperCase(val){
            val.value = val.value.toUpperCase();
        </script>
      </head>
      <body>
      <input type="text" name="textfield" onkeydown="setUpperCase(this)" />
      </body>
    </html>

  • 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 XML file into DTD using Java

    Hi All,
    I want to do convert the xml file into DTD using Java.
    I read the DOM package but didnt get clear idea.
    Anyone of you have an idea please share the coding with me.
    Any suggestions greatly appreciated.
    Thanks
    Veera

    Hi All,
    I want to do convert the xml file into DTD using Java.
    I read the DOM package but didnt get clear idea.
    Anyone of you have an idea please share the coding with me.
    Any suggestions greatly appreciated.
    Thanks
    Veera

  • 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

  • Need to convert an image to .jpeg using Java !

    Hello,
    i am working in images now. i need to convert any image in the form of .jpeg using Java. in other words, i need to store an image in the form of .jpeg format. can any of u help me ! thanks in advance.
    - Krishna

    There's also jimi, at http://java.sun.com/products/jimi/
    You can do something like:
    image = new BufferedImage (width, height, BufferedImage.TYPE_INT_RGB);
    // create your image
    String path = "/path/image.jpg";
    Jimi.putImage(image, path);
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to convert a .jsp to a .java/.class file for use in peoplesoft

    Hi java/jsp experts,
    I want to convert a .jsp to a .java/.class file. is there a tool available, please let me know if you have any pointers....
    or can i do it manually:
    these are a few lines that the .jsp contains, and i would like to translate this to be in .java/.class format:
    <%@ page import="sun.misc.BASE64Encoder, javax.crypto., javax.crypto.spec."%>
    <%@ page import="java.util.StringTokenizer" %>
    <%@ page import="java.util.Map" %>
    <%!
    sb.append("<input type=\"hidden\" name=\"orderPage_serialNumber\" value=\"");
    sb.append(serialNumber);
    sb.append("\">\n");
    return sb.toString();
    %>
    how can i translate the above import statements and html elements from jsp to java, please let me know.
    Once i have the .java file created from the .jsp, I will compile .java to create the .class file and invoke the .class in peoplecode by using java apis available in peopletools.
    Thanks in advance.

    Is there a way convert a binary .exe file( compiled by
    another compiler) into Java .class/.jar file ? Anyone
    know of a free program that can do this?It's not possible. There are many decompilers and disassemblers for Java but nothing will take you from ANY binary to Java source. It would be the end of computing as we know it and the beginning of a new era -:)

  • How to convert a .class file into .java file without .jad using DeJDecompil

    Hi all,
    I am using DeJDecompiler and working with swing applications.If I try to convert a .class file into .java file,it is converting into .jad file only.Fine but if I try to save that file into .java file,It is giving lot of errors in that program.When I went into that program the total style of the program is changed and TRY-CATCH block is not recognised by the dejdecompiler,hence If I try to include some methods in the existing .java file thus got,I could not do.Kindly help me.
    If I get the .java file without error then I can process the rest of the functionality.
    Thanks in advance
    With kind Regs
    Satheesh.K

    Not so urgent today then!
    http://forum.java.sun.com/thread.jsp?thread=553576&forum=31&message=2709757
    I'm still not going to help you to steal someone�s code.

Maybe you are looking for