Generating schema from XML document.

Hi,
I was wondering if there is any way to generate an xsd from an xml document using some neat java api?
Thanks in advance,
Ted Kaminski

Use JDK 1.4.

Similar Messages

  • What is the best way to create a database schema from XML

    What is the best way to create a database schema from XML?
    i have  a complex XML file that I want to create a database from and consistently import new XML files of the same schema type. Currently I have started off by mapping the XSD into Excel and using Mysql for Excel to push into MySQL.
    There must be a more .net microsoft solution for this but I cannot locate the topic and tools by searching. What are the best tools and way to manage this?
    Taking my C# further

    Hi Saythj,
    When mentioning "a database schema from XML", do you mean the
    XML Schema Collections? If that is what you mean, when trying to import XML files of the same schema type, you may take the below approach.
    Create an XML Schema Collection basing on your complex XML, you can find
    many generating tools online to do that.
    Create a Table with the above created schema typed XML column as below.
    CREATE TABLE youTable( Col1 int, Col2 xml (yourXMLSchemaCollection))
    Load your XML files and try to insert the xml content into the table above from C# or some other approaches. The XMLs that can't pass the validation fail inserting into that table.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • How can create schema from this document.

    Thank you for reply~
    The following is that I have.
    <?xml version='1.0'?>
    <conference>
    <proceedings key="AlbenR00">
    <pro_book>
    <editor>Lauralee Alben</editor>
    <editor>Michael Rigsby</editor>
    <title>Envisioning the E-Quarium: Strategic Design Planning for the Monterey Bay Aquarium''s Website.</title>
    <pages>452-454</pages>
    <year>2000</year>
    <booktitle>Symposium on Designing Interactive Systems</booktitle>
    <series> <--declared with ANY in DTD
    <href>db/conf/eld.htm</href>
    <source>Information Retrieval</source>
    </series>
    </pro_book>
    </proceedings>
    </conference>
    I want to create DB schema from this document, but because I don't know how the document is stored in Oracle8i with object-relational schema when the document has more two level deep.
    (In sample of XSU,all XML documents has only one level deep.)
    Would you create schema from above simple document,please? It will be very helpful to me!!
    Thank you for reading my e-mail.

    Just stop using it and remove any data from your profile that you don't want there. You can't actually remove your account or your old posts from the server.
    If you have registered to have notification emails sent to you, click 'My Stuff' at top right, select 'Preferences' , then in the next page select the 'Email Notification Preferences' tab and click all the 'No' radio buttons. Then click 'Save'.
    If you already have notifications set on some threads you will still get emails from them. Click on your username at the top, then under 'Actions' in the right sidebar, select "'Manage email notifications.' This will show the threads you've set up notifications on in the past. Select those you want to stop and click the 'Remove Selected Notifications' button at bottom.

  • Is there any util or ant build to generate xmlbeans from xml

    hi all
    is there any utility tools or ant build process that can generate xmlbeans from xml schema? thanks.

    exactly,
    here are some libraries which are open sources;
    http://java-source.net/open-source/pdf-libraries hope it's useful. :D

  • Error when generating IDoc from MC document - workitem to all the SAP users

    A workflow item with the subject of “Error when generating IDoc from MC document” is sent to all the SAP users' inbox. Is it possible to stop the generation of this work item? If that is not possible, can we limit sending the work item to a specific user/agent instead of all the users in the system?
    It appears that these work item or error message are generated when one of the developers reopen the POs and add line items. Moreover, during that time the procurement team blocked the IDOCs from going out to the vendors when changing and resaving the POs. Therefore, we need stop the generation of error message/work item when the IDOCs generation blocked.

    Please check Rule 70000141which is the default rule for this task. Inside this rule a FM is attcahed which is reading table EDO13 and EDPP1 where agent is retrieved Probably this table entries are not maintained. This Workflow is getting triggered from Message cOntrol I think.
    Please check this link for
    http://help.sap.com/saphelp_47x200/helpdata/en/c5/e4aec8453d11d189430000e829fbbd/frameset.htm
    <b>Reward points if useful and close thread if resolved</b>

  • Error when generating IDoc from MC document

    Hi,
    Our Workflow administrator is getting the following error  in his inbox daily for a particular IDOC type.
    Error when generating IDoc from MC document
    Please let me know how to disable this message.
    Regards
    Elini.P

    Hi  experts,
                i got the error msg when generating idoc from mc document
    this error msg goes to all sap users inbox,how to resolve this problem
    pl give me solutions
    regards
    kumar

  • XML-Schema IN XML-Document OUT

    I have to develop a application that have a XML-Schema as INPUT an a XML-Document as OUTPUT. The Application must select the data from 4 SQL Tables, the selects should be dynamicly created at run time (depending at the struckters in the XML-Schema).
    I don't have any know how in XML-DB. Can you help me please.

    Covered in the standard demo
    See the use of the SQL/XML functions to create an XML view over relational data.
    Please also note the following useful examples
    XML DB basic Demo at
    http://otn.oracle.com/tech/xml/xmldb/demonstrations/xdbBasicDemo.zip
    and the instructions at

  • How do i query attributes from xml documents

    I want to to query only details in Issue id="705230" (id is an attribute)
    I tried this, but does not help. I should be able to query the value of core_org_id attribute
    select extract(CLOB_DATA, 'PcrDocument/PcrOrganization/core_org_id) CORE_ORG_ID from from pcr_files where existsNode(CLOB_DATA, 'PcrDocument/PcrOrganization/Issues/Issue[@id="705230"]')=1;
    -- does not return anything....
    I tried to extract value for R_DATE & R_REVIEW_DATE for issue id=705230, but iam not able to.
    Data for all the issues is retured.
    Here is the query used...
    select extract(CLOB_DATA, 'PcrDocument/PcrOrganization/Issues/Issue') ISSUE from pcr_files where existsNode(CLOB_DATA, 'PcrDocument/PcrOrganization/Issues/Issue[@id="705230"]')=1;
    Here is the part of XML document iam querying on...
    - <ns1:PcrDocument id="PCR-13562" title="EU Disclosures - EC 1060/2009" version="1" pcrPublishDate="2012-01-11T12:49:02" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://integration.mysite.com/ServiceSchema/v3">
    - <ns1:PcrOrganization core_org_id="345840">
    <ns1:PcrLinkedTo value="ISSUE" />
    - <ns1:AdditionalInfo>
    <ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
    </ns1:AdditionalInfo>
    - <ns1:Issues>
    - <ns1:Issue id="705230">
    - <ns1:AdditionalInfo>
    <ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
    <ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
    <ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
    </ns1:AdditionalInfo>
    - <ns1:IssueDetail id="114766798">
    - <ns1:AdditionalInfo>
    <ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
    <ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
    <ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
    </ns1:AdditionalInfo>
    </ns1:IssueDetail>
    </ns1:Issue>
    - <ns1:Issue id="727193">
    - <ns1:AdditionalInfo>
    <ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
    <ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
    <ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
    </ns1:AdditionalInfo>
    - <ns1:IssueDetail id="117994574">
    - <ns1:AdditionalInfo>
    <ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
    <ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
    <ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
    </ns1:AdditionalInfo>
    </ns1:IssueDetail>
    </ns1:Issue>
    </ns1:Issues>
    </ns1:PcrOrganization>
    </ns1:PcrDocument>

    I did not include the name space declaration for it is working fine. Really? Then I suppose you must be using a schema-based XMLType column?
    Is it Object-Relational or Binary XML storage?
    You mentioned it is depricated in 11.2, but iam able to run it on 11.2.Deprecated doesn't mean it ceases functioning.
    Any suggestions to covert this to XMLTable/XMLQuery format please..If you read the documentation, it covers this part too ;)
    Example :
    create table tmp_xml of xmltype;
    insert into tmp_xml values(
    xmltype('<ns1:PcrDocument id="PCR-13562" title="EU Disclosures - EC 1060/2009" version="1" pcrPublishDate="2012-01-11T12:49:02" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://integration.mysite.com/ServiceSchema/v3">
      <ns1:PcrRatingDetails>
        <ns1:LeadAnalyst>
          <ns1:FirstName>xxxxx</ns1:FirstName>
          <ns1:MiddleName/>
          <ns1:LastName>xxxxxx</ns1:LastName>
          <ns1:Title>Director</ns1:Title>
          <ns1:Label>Primary Analyst</ns1:Label>
          <ns1:Telephone>xxxxxxxxxxxx</ns1:Telephone>
          <ns1:Email>[email protected]</ns1:Email>
          <ns1:Address>
            <ns1:Line1>Main Tower</ns1:Line1>
            <ns1:Line2>Neue Mainzer Strasse</ns1:Line2>
            <ns1:City>FFT</ns1:City>
            <ns1:State/>
            <ns1:ZipCode>99999</ns1:ZipCode>
            <ns1:Country>Germany</ns1:Country>
          </ns1:Address>
        </ns1:LeadAnalyst>
        <ns1:RatingApprover>
          <ns1:FirstName>Nick</ns1:FirstName>
          <ns1:MiddleName/>
          <ns1:LastName>Mate</ns1:LastName>
        </ns1:RatingApprover>
      </ns1:PcrRatingDetails>
      <ns1:PcrOrganization core_org_id="345840">
        <ns1:PcrLinkedTo value="ISSUE"/>
        <ns1:AdditionalInfo>
          <ns1:Info type="AdditionalInfo_QuartelyReport_URL">
            <br/>
            <A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&amp;assetID=1245321070686" target="_blank">MGH</A>
          </ns1:Info>
        </ns1:AdditionalInfo>
        <ns1:Issues>
          <ns1:Issue id="705230">
            <ns1:AdditionalInfo>
              <ns1:Info type="R_DATE">Credit  Release Date: 09-Apr-2010</ns1:Info>
              <ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
              <ns1:Info type="AdditionalInfo_QuartelyReport_URL">
                <br/>
                <A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&amp;assetID=1245321070686" target="_blank">MGH</A>
              </ns1:Info>
            </ns1:AdditionalInfo>
            <ns1:IssueDetail id="114766798">
              <ns1:AdditionalInfo>
                <ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
                <ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
                <ns1:Info type="AdditionalInfo_QuartelyReport_URL">
                  <br/>
                  <A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&amp;assetID=1245321070686" target="_blank">MGH</A>
                </ns1:Info>
              </ns1:AdditionalInfo>
            </ns1:IssueDetail>
          </ns1:Issue>
          <ns1:Issue id="727193">
            <ns1:AdditionalInfo>
              <ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
              <ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
              <ns1:Info type="AdditionalInfo_QuartelyReport_URL">
                <br/>
                <A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&amp;assetID=1245321070686" target="_blank">MGH</A>
              </ns1:Info>
            </ns1:AdditionalInfo>
            <ns1:IssueDetail id="117994574">
              <ns1:AdditionalInfo>
                <ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
                <ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
                <ns1:Info type="AdditionalInfo_QuartelyReport_URL">
                  <br/>
                  <A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&amp;assetID=1245321070686" target="_blank">MGH</A>
                </ns1:Info>
              </ns1:AdditionalInfo>
            </ns1:IssueDetail>
          </ns1:Issue>
        </ns1:Issues>
      </ns1:PcrOrganization>
    </ns1:PcrDocument>')
    SQL> set long 10000
    SQL>
    SQL> select x1.analyst
      2       , x1.chair
      3       , x1.core_org_id
      4       , x2.*
      5  from tmp_xml t
      6     , xmltable(
      7         xmlnamespaces(default 'http://integration.mysite.com/ServiceSchema/v3')
      8       , '/PcrDocument'
      9         passing t.object_value
    10         columns analyst     xmltype path 'PcrRatingDetails/LeadAnalyst'
    11               , chair       xmltype path 'PcrRatingDetails/RatingApprover'
    12               , core_org_id number  path 'PcrOrganization/@core_org_id'
    13               , issues      xmltype path 'PcrOrganization/Issues/Issue'
    14       ) x1
    15     , xmltable(
    16         xmlnamespaces(default 'http://integration.mysite.com/ServiceSchema/v3')
    17       , '/Issue'
    18         passing x1.issues
    19         columns issue                 number       path '@id'
    20               , rating_date           varchar2(40) path 'AdditionalInfo/Info[@type="R_DATE"]'
    21               , rating_review_date    varchar2(40) path 'AdditionalInfo/Info[@type="R_REVIEW_DATE"]'
    22               , issue_detail          number       path 'IssueDetail/@id'
    23               , id_rating_date        varchar2(40) path 'IssueDetail/AdditionalInfo/Info[@type="R_DATE"]'
    24               , id_rating_review_date varchar2(40) path 'IssueDetail/AdditionalInfo/Info[@type="R_REVIEW_DATE"]'
    25       ) x2
    26  where x2.issue = 705230
    27  ;
    ANALYST                                                                          CHAIR                                                                            CORE_ORG_ID      ISSUE RATING_DATE                              RATING_REVIEW_DATE                       ISSUE_DETAIL ID_RATING_DATE                           ID_RATING_REVIEW_DATE
    <LeadAnalyst xmlns="http://integration.mysite.com/ServiceSchema/v3">             <RatingApprover xmlns="http://integration.mysite.com/ServiceSchema/v3">               345840     705230 Credit  Release Date: 09-Apr-2010        Credit Last Review Date: 12-Oct-2011        114766798 Credit Release Date: 09-Apr-2010         Credit Last Review Date: 12-Oct-2011
      <FirstName>xxxxx</FirstName>                                                     <FirstName>Nick</FirstName>                                                                                                                                                                                                                  
      <MiddleName/>                                                                    <MiddleName/>                                                                                                                                                                                                                                
      <LastName>xxxxxx</LastName>                                                      <LastName>Mate</LastName>                                                                                                                                                                                                                    
      <Title>Director</Title>                                                        </RatingApprover>                                                                                                                                                                                                                              
      <Label>Primary Analyst</Label>                                                                                                                                                                                                                                                                                                
      <Telephone>xxxxxxxxxxxx</Telephone>                                                                                                                                                                                                                                                                                           
      <Email>[email protected]</Email>                                                                                                                                                                                                                                                                                         
      <Address>                                                                                                                                                                                                                                                                                                                     
        <Line1>Main Tower</Line1>                                                                                                                                                                                                                                                                                                   
        <Line2>Neue Mainzer Strasse</Line2>                                                                                                                                                                                                                                                                                         
        <City>FFT</City>                                                                                                                                                                                                                                                                                                            
        <State/>                                                                                                                                                                                                                                                                                                                    
        <ZipCode>99999</ZipCode>                                                                                                                                                                                                                                                                                                    
        <Country>Germany</Country>                                                                                                                                                                                                                                                                                                  
      </Address>                                                                                                                                                                                                                                                                                                                    
    </LeadAnalyst>                                                                                                                                                                                                                                                                                                                  

  • How to generate xhtml from xml

    Hi All
    I've an application that will generate an xml file in this way:
    FileWriter salidaxml = new FileWriter(new File("reporteHP.xml"));
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = dbf.newDocumentBuilder();
    Document doc = docBuilder.newDocument();
    // Some nodes and elements added here
    TransformerFactory transFact = TransformerFactory.newInstance();
    Transformer trans = transFact.newTransformer();
    trans.setOutputProperty(OutputKeys.INDENT, "yes");
    trans.setOutputProperty(OutputKeys.METHOD, "xml");
    trans.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1");
    trans.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
    Result result = new StreamResult(salidaxml);     
    try {               
        trans.transform(new DOMSource(doc), result);               
        transformer.transform(source, rslt);           
    } catch (TransformerException te) {               
        System.out.println(te.getMessageAndLocation());               
    throw te;           
    salidaxml.flush();           
    salidaxml.close();Code run ok but I want to know how could I add code to generate a xhtml file using a dtd and a xsl I've or at least how to add the following at the begin of the xml generated file:
    <?xml-stylesheet type="text/xsl" href="reporte.xsl"?>Thanks in advance
    <xl>

    Hi
    Thanks for your help but I really didn;t found what I'm lookin for in this page.
    This page explains how xslt transform xml in xhtml. I know this point, I want to know HOW could I make it from my application. I guess there are a transform class that could generate html from a xsl template, but I couldn't find the way to do it and couldn't find examples too.
    <xl>

  • Generate HTML from XML and XSLT

    Hi,
    I have asked in different forum but did not get my answer so asking here again
    i want to generate a HTML file from XML and XSLT in a temp folder and then read it into a java.lang.String, so can email it or write to a database file.
    how can i do it, is there any engine which will merger XML and XSLT and give a HTML file or a String as output
    Ashish

    Hi,
    Follow the simple steps.
    1) Create XML Document (I hope u have it)
    2) Create XSL Stylesheet for your XML document
    3) Put both files in one directory some where in your local system or web server upto u
    4) Invoke the XML document from webbrowser and you are done.
    http://localhost/test/Catalog.xml OR C:\XXXXDIR\test\Catalog.xml
    For Ex: XML File Content, Catalog.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml-stylesheet type="text/xsl" href="Catalog.xsl"?>
    <catalog>
    <cd>
    <title>Empire Burlesque</title>
    <artist>Bob Dylan</artist>
    <country>USA</country>
    <company>Columbia</company>
    <price>10.90</price>
    <year>1985</year>
    </cd>
    </catalog>
    XSL File Content: Catalog.xsl
    <?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
    <html>
    <body>
    <h2>My CD Collection</h2>
    <table border="1">
    <tr bgcolor="#9acd32">
    <th align="left">Title</th>
    <th align="left">Artist</th>
    </tr>
    <xsl:for-each select="catalog/cd">
    <tr>
    <td><xsl:value-of select="title"/></td>
    <td><xsl:value-of select="artist"/></td>
    </tr>
    </xsl:for-each>
    </table>
    </body>
    </html>
    </xsl:template></xsl:stylesheet>

  • XSLT from XML document

    Hello all you XML gurus
    I have written and ABAP as a client to connect to external web services which return an XML response and I now need to write and XSLT in order to transfer the data into my ABAP structure. Is there an easy way to write and XSLT transformation program using the XML as a base?
    Take a look at the XML document returned from the webservice
    <?xml version="1.0" encoding="utf-8"?>
    <SchedRemote xmlns="http://scheduall.com/webservices/">
      <Response>
        <ClientDetails ERRCODE="0" ERRMSG="Ok">
          <Field CL_ID="1127823" />
          <Field PID="0" />
          <Field NAME="Anthonys test client" />
          <Field ADDRESS="" />
          <Field CITY="" />
          <Field STATE="" />
          <Field ZIP="" />
          <Field COUNTRY="" />
          <Field PH1="0836078881" />
          <Field PH2="" />
          <Field FAX="0114674054" />
          <Field NTS="" />
          <Field SNTS="" />
          <Field TAX1="" />
          <Field TAX2="" />
          <Field RATE_ID="0" />
          <Field TAXCODE="0" />
          <Field TERMS_ID="0" />
          <Field STAT="0" />
          <Field EXEC_ID="0" />
          <Field SHORTNAME="" />
          <Field CLIENTTYPE="0" />
          <Field EXTID="" />
          <Field T_SINCE="1/1/1970 12:00:00 AM" />
          <Field BILLPARENT="0" />
          <Field INHOUSE="0" />
          <Field CRLIMIT="0" />
          <Field POREQUIRED="0" />
          <Field DISCOUNT="0" />
          <Field LAST_MOD="4/16/2007 2:44:54 PM" />
          <Field BADDRESS="" />
          <Field BCITY="" />
          <Field BSTATE="" />
          <Field BZIP="" />
          <Field BCOUNTRY="" />
          <Field GMT_OFFSET="0" />
          <Field EMAILADDR="" />
          <Field LATECHARGE="0" />
          <Field GROUP_1="0" />
          <Field GROUP_2="0" />
          <Field GROUP_3="0" />
          <Field GROUP_4="0" />
          <Field GROUP_5="0" />
          <Field GROUP_6="0" />
          <Field GROUP_7="0" />
          <Field GROUP_8="0" />
          <Field GROUP_9="0" />
          <Field GROUP_10="0" />
          <Field GROUP_11="0" />
          <Field GROUP_12="0" />
          <Field BILLATT="" />
          <Field ALTEMAILAD="" />
          <Field EXEC_ID2="0" />
          <Field NOSENDSTMT="0" />
          <Field SHIP_INST="" />
          <Field PROD_ID="0" />
          <Field CREATEDBY="ANDRE" />
          <Field DATECREAT="4/16/2007 2:44:54 PM" />
          <Field MOD_BY="ANDRE" />
          <Field SHIP_VIA="" />
          <Field SHIP_ACC="" />
          <Field MB_NOBILL="0" />
          <Field OT_EXEMPT="0" />
          <Field USE_NIGHT="0" />
          <Field CL_COLOR="0" />
          <Field ASSOCFILE1="" />
          <Field AUTOSELPRJ="0" />
          <Field SALUTATION="" />
          <Field CURR_ID="0" />
          <Field LDR_PREFIX="" />
          <Field TAX3="" />
          <Field F_PRIMARY="0" />
          <Field URL_SUPID="0" />
          <Field TIMEZONE="0" />
          <Field LOCSRCE_ID="0" />
          <Field LOCDEST_ID="0" />
          <Field DSTC_ID="0" />
          <Field UTC_OFFSET="0" />
          <Field AKA_FOR="0" />
          <Field CRDLIMCHK="0" />
          <Field TRAFF_STAT="0" />
          <Field INS_EXPIR="1/1/1970 12:00:00 AM" />
          <Field DEFSHADRID="0" />
          <Field CXL_ID="0" />
          <Field LIB_NOTES="" />
          <Field USEMARKUP="0" />
          <Field MARKUPPCT="0" />
          <Field LNAME="" />
          <Field FNAME="" />
          <Field PLANTID="" />
          <Field PRCHGRPID="" />
          <Field B_NOBILL="0" />
          <Field BARCODE1="" />
          <Field BARCODE2="" />
          <Field EXTID2="" />
          <Field PENINVONLY="0" />
          <Field CONTR_REQD="0" />
          <Field NO_INVEXP="0" />
          <CL_USER>
            <Field CL_ID="1127823" />
            <Field USER1="User field 1" />
            <Field USER2="" />
            <Field USER3="" />
            <Field USER4="" />
            <Field USER5="" />
            <Field USER6="" />
            <Field USER7="" />
            <Field USER8="" />
            <Field USER9="" />
            <Field USER10="" />
            <Field USER11="" />
            <Field USER12="" />
            <Field USER13="" />
            <Field USER14="" />
            <Field USER15="" />
            <Field USER16="" />
            <Field USER17="" />
            <Field USER18="" />
            <Field USER19="" />
            <Field USER20="" />
            <Field USER21="" />
            <Field USER22="" />
            <Field USER23="" />
            <Field USER24="" />
            <Field USER25="" />
            <Field USER26="" />
            <Field USER27="" />
            <Field USERFLAG1="0" />
            <Field USERFLAG2="0" />
            <Field USERFLAG3="0" />
            <Field USERFLAG4="0" />
            <Field USERFLAG5="0" />
            <Field USERFLAG6="0" />
            <Field USERDATE1="1/1/1900 12:00:00 AM" />
            <Field USERDATE2="1/1/1900 12:00:00 AM" />
          </CL_USER>
        </ClientDetails>
      </Response>
    </SchedRemote>
    I have the following structure in my ABAP program which I would like a way of developing the XSLT in order to populate the results of each field into my program
    data: begin of gs_clientdetails.
              include structure zclient. " Contains all the CLIENT fields from Scheduall
              include structure zcluser." Contains all the CL_USER fields from Scheduall
    data: end of gs_clientdetails.
    Any suggestions??

    Hi,
    I am not a XSLT expert but Tobias wrote some nice blogs about it. Read them here:
    /people/tobias.trapp/blog
    You might want to start with this one:
    /people/tobias.trapp/blog/2005/05/04/xml-processing-in-abap-part-1
    cheers
    Thomas

  • How to generate schema from designer?

    I have the following problem - my application is intended as development tool, e.g. laike Oracle warehouse builder or so. So - the main part will be graphical designer, which imports the structure of existing database and then user can draw the structure of additional database schema (and maybe - the user can specify some mappings and/or relationships in some other way as well) and then - my application will generate schema based on these drawings (e.g. my application can generate SQL statements like create table and so on and then - execute them).
    My current plan is to use UML (or EMF, maybe together with database modelling profile if available) designer from Eclipse as the main part of application and then the SQL generation I can organize in code (where the UML drawing I can access as tree of code instances) ro even - if there is one available - I can define transformation from UML database profile to SQL code (in manner of MDA - model driven architecture, as advised by people from IBM Rational). I think - this should be pretty optimal use of already available free-source technologies... I have intention to use this for Oracle database only, so - I have no intention to make tool that can definitely work with any SQL-standard compliant database.
    I only wanted to check - what are your thoughs about this. Now I wonder - does Oracle offer some framework for building developer productivity tools as I described. It could be quite logical - because Oracle itself should have some kind of platform e.g. for building its Warehouse Builder and so on - why not open this platform for wider use? So - I wanted to just check - if there some alternative (more appropriate for Oracle) available instead of using Eclipse.
    Message was edited by:
    user454720

    Thanks for the schema generation task info.
    I found that OAS 10.1.3 is not Java EE 5 compliant (at least not yet), so it's only got JAXB 1.0. Hence my JDev library problem and the schema generation confusion were both from the same cause.
    Thanks.

  • How to read from xml documents using either sax or dom

    dear all
    i have an xml document and i want to create a procedure to read the data from it .
    is it possible or not? thanks in advance

    Where is the xml document located?
    load it into an XMLTYPE and apply xpath as required.
    SQL> declare
      2    xml xmltype ;
      3  begin
      4    xml := xmltype('<node><value>this is text</value></node>') ;
      5    dbms_output.put_line('value='||xml.extract('/node/value/text()').getStringVal()) ;
      6  end ;
      7  /
    value=this is text
    PL/SQL procedure successfully completed.
    SQL>

  • How do I generate HTML from XML & XSL using XSL Processor ?

    I want to generate a HTML from XML & XSL using XDK for C on
    linux-8i.
    I run the XSLSample well.
    But it only generate a XML from a XML & a XSL.
    Can any one give me some advise or sample code?

    Just use HTML tags instead of xml tags in your stylesheet, and
    you'll generate HTML instead.
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="/">
        <html>
          <body>
            <xsl:for-each select="ROWSET">
              <table border="1" cellspacing="0">
                <xsl:for-each select="ROW">
                  <tr>
                    <td><xsl:value-of select="EMPNO"/></td>
                    <td><xsl:value-of select="ENAME"/></td>
                  </tr>
                </xsl:for-each>
              </table>
            </xsl:for-each>
          </body>
        </html>
      </xsl:template>
    </xsl:stylesheet>

  • How To Generate Objects From XML and DTD?

    Are there tools to generate objects from dtd's and xml files?
    If this is not possible for some reason: is there a tool to generate classes from a dtd?
    I can not find the "XML Java Class Generator" (from oracle) anymore.

    XMLBeans
    There are other solutions, but I know this one is pretty good.

Maybe you are looking for

  • How to delete entire data in the hierarchy table,?

    hi friends i need to delete entire data in the hierarchy table which contains parent child relationship,when i am selecting entire records and choose the option delete from the context menu, it is not deleting, and i have to delete one by one or i ha

  • How can I create an animated countdown timer?

    Is there a way to create an animated countdown timer in Adobe Fireworks (animated gif)? Thank you

  • Populate values in data tab

    Hi, I have a table type: Ztable_type which has structure of Ztable_type_struct. Ztable_type_struct has two fields: fieldname  type syuname range_table type data. (this is table) how could I insert data into this table type. any snippets of code is ap

  • 10.3 registering Admin and Managed server as windows service.

    I have not found anything in the new documentation on how to do this which left me wondering if there is a reason it was omitted? I found procedures from the 8.1 docs but would rather have something more up to date. I'm installing on win 2003 server.

  • Removing dups from list

    Hello i am removing dups from a list by overwriting the equals method of the class. The equals method is checking for only one attribute...but i want to have another list with different elements from the list (another attribute) class C has two main