How to generate the following XML-Output?

Hi all,
I would like to generate the following XML-Output without defining any types or tables:
<?xml version = '1.0'?>
<DEPARTMENTS_EMPLOYEES>
<DEPARTMENT NAME="ACCOUNTING">
<DEPTNO>10</DEPTNO>
<LOC>NEW YORK</LOC>
<EMPLOYEES_OF_DEPARTMENT>
<EMPNO>...</EMPNO>
<ENAME>...</ENAME>
</EMPLOYEES_OF_DEPARTMENT>
</DEPARTMENT>
<DEPARTMENT NAME="RESEARCH">
<DEPTNO>20</DEPTNO>
<LOC>DALLAS</LOC>
<EMPLOYEES_OF_DEPARTMENT>
</EMPLOYEES_OF_DEPARTMENT>
</DEPARTMENT>
</DEPARTMENTS_EMPLOYEES>
Unfortunately the following SQL-Statement does not working:
select xmlElement("DEPARTMENTS_EMPLOYEES",
xmlAttributes(d.deptno as "DEPTNO"),
xmlElement("DNAME", d.dname),
xmlElement("LOC", d.loc),
xmlElement("EMPLOYEES_OF_DEPARTMENT",
(select xmlAgg(xmlElement("EMPLOYEE", xmlAttributes(e.empno as "EMPNO"), xmlForest(e.ename as "ENAME", e.job as "JOB", e.hiredate as "HIREDATE", e.sal as "SAL", e.comm as "COMM", m.empno as "MGRNO", m.ename as "MGRNAME" ) )
from emp e, emp m
where e.deptno = d.deptno
and m.empno = e.mgr
) as XML
from dept d;
1. When I provide this statement with SQL*Plus
(unfortunately 9.0.1.3.0) then I get the
following output:
XML()
XMLTYPE()
XMLTYPE()
XMLTYPE()
XMLTYPE()
2. When I provide this statement with SQL Navigator
4.3.0.456 then I get the following error:
[1]: (Error): OCI-21560: argument 3 is null, invalid,
or out of range
3. When I execute the following PL/SQL-Code then I get
the XML-Error message:
DECLARE
x CLOB;
xmlstr VARCHAR2(32767);
line VARCHAR2(2000);
BEGIN
x := dbms_xmlquery.getxml('select xmlElement("DEPARTMENT",
xmlAttributes(d.deptno as "DEPTNO"),
xmlElement("DNAME", d.dname),
xmlElement("LOC", d.loc),
xmlElement("EMPLOYEELIST",
(select xmlAgg(xmlElement("EMPLOYEE",
xmlAttributes(e.empno as "EMPNO"),
xmlForest(e.ename as "ENAME",
e.job as "JOB",
e.hiredate as "HIREDATE",
e.sal as "SAL",
e.comm as "COMM",
m.empno as "MGRNO",
m.ename as "MGRNAME"
from emp e, emp m
where e.deptno = d.deptno
and m.empno = e.mgr
) as XML
from dept d');
xmlstr := dbms_lob.SUBSTR(x,32767);
LOOP
EXIT WHEN xmlstr IS NULL;
line := SUBSTR(xmlstr,1,INSTR(xmlstr,CHR(10))-1);
DBMS_OUTPUT.PUT_LINE(line);
xmlstr := SUBSTR(xmlstr,INSTR(xmlstr,CHR(10))+1);
END LOOP;
END;
<?xml version = '1.0'?>
<ERROR>oracle.xml.sql.OracleXMLSQLException: Unimplemented Feature</ERROR>
4. When I provide the following PL/SQL-Code then I get the same xml-error:
DECLARE
x CLOB;
xmlstr VARCHAR2(32767);
line VARCHAR2(2000);
BEGIN
x := dbms_xmlquery.getxml('select xmlElement("SYSDATE", xmlElement("Datum", to_char(sysdate,''DD.MM.YYYY'')),
xmlElement("Zeit", to_char(sysdate,''HH24:MI:SS''))) as XML
from dual');
xmlstr := dbms_lob.SUBSTR(x,32767);
LOOP
EXIT WHEN xmlstr IS NULL;
line := SUBSTR(xmlstr,1,INSTR(xmlstr,CHR(10))-1);
DBMS_OUTPUT.PUT_LINE(line);
xmlstr := SUBSTR(xmlstr,INSTR(xmlstr,CHR(10))+1);
END LOOP;
END;
<?xml version = '1.0'?>
<ERROR>oracle.xml.sql.OracleXMLSQLException: Unimplemented Feature</ERROR>
Can I generate the needed XML-Output from Database with SQL or PL/SQL?
Can anybody help me?
Regards
Leonid Pavlov

I have this done with:
DECLARE
qryCtx DBMS_XMLGEN.ctxHandle;
result CLOB;
xmlstr VARCHAR2(32767);
line VARCHAR2(2000);
BEGIN
qryCtx := dbms_xmlquery.newContext('select deptno, dname, loc, cursor(select e.empno, e.ename, e.job,
to_char(e.hiredate,''DD.MM.YYYY'') hiredate, e.sal, e.comm,
m.empno MGRNO, m.ename MGRNAME
from emp e, emp m
where e.deptno = dept.deptno
and m.empno(+) = e.mgr) emp
from dept');
dbms_xmlquery.useNullAttributeIndicator(qryCtx, FALSE);
dbms_xmlquery.setRowsetTag(qryCtx, 'DEPARTMENTS_EMPLOYEES');
dbms_xmlquery.setrowtag(qryCtx, 'DEPARTMENT');
DBMS_XMLQuery.setRowIdAttrName(qryCtx, 'ID');
DBMS_XMLQuery.setRowIdAttrValue(qryCtx, 'DEPTNO');
-- dbms_xmlquery.setrowidattrname(qryCtx, NULL);
result := dbms_xmlquery.getXML(qryCtx);
DBMS_XMLQuery.closeContext(qryCtx);
xmlstr := dbms_lob.SUBSTR(result,32767);
LOOP
EXIT WHEN xmlstr IS NULL;
line := SUBSTR(xmlstr,1,INSTR(xmlstr,CHR(10))-1);
DBMS_OUTPUT.PUT_LINE(line);
xmlstr := SUBSTR(xmlstr,INSTR(xmlstr,CHR(10))+1);
END LOOP;
END;
But how can I rename the <EMP>-Element to Employees?

Similar Messages

  • How to generate the following XML

    Hi all,
    I have 2 tables, demo_orders and demo_order_items (child)
    how can I generate something like this :
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
      <ORDER_ID>1</ORDER_ID>
      <CUSTOMER_ID>1</CUSTOMER_ID>
      <ORDER_TOTAL>1200</ORDER_TOTAL>
      <ORDER_TIMESTAMP>2009-01-16T16:20:09.000</ORDER_TIMESTAMP>
      <USER_ID>2</USER_ID>
      <ITEMS>
       <ITEMROW>
        <ORDER_ITEM_ID>1</ORDER_ITEM_ID>
        <ORDER_ID>1</ORDER_ID>
        <PRODUCT_ID>1</PRODUCT_ID>
        <UNIT_PRICE>1200</UNIT_PRICE>
        <QUANTITY>1</QUANTITY>
       </ITEMROW>
      </ITEMS>
    </ROW>
    <ROW>
      <ORDER_ID>2</ORDER_ID>
      <CUSTOMER_ID>2</CUSTOMER_ID>
      <ORDER_TOTAL>599</ORDER_TOTAL>
      <ORDER_TIMESTAMP>2009-01-11T16:20:09.000</ORDER_TIMESTAMP>
      <USER_ID>2</USER_ID>
      <ITEMS>
       <ITEMROW>
        <ORDER_ITEM_ID>2</ORDER_ITEM_ID>
        <ORDER_ID>2</ORDER_ID>
        <PRODUCT_ID>2</PRODUCT_ID>
        <UNIT_PRICE>199</UNIT_PRICE>
        <QUANTITY>1</QUANTITY>
       </ITEMROW>
       <ITEMROW>
        <ORDER_ITEM_ID>3</ORDER_ITEM_ID>
        <ORDER_ID>2</ORDER_ID>
        <PRODUCT_ID>8</PRODUCT_ID>
        <UNIT_PRICE>50</UNIT_PRICE>
        <QUANTITY>2</QUANTITY>
       </ITEMROW>
      </ITEMS>
    </ROW>
    </ROWSET>

    Hi, I'm assuming that table columns have the same names as the xml elements in your example.
    Try this:
    SQL >select xmlelement("ROWSET",
      2                    xmlagg(xmlelement("ROW",xmlforest(order_id,
      3                                                      customer_id,
      4                                                      order_total,
      5                                                      to_char(order_timestamp,'yyyy-mm-dd"T"hh24:mi:ss.FF3') as "ORDER_TIMESTAMP",
      6                                                      user_id),
      7                                            xmlelement("ITEMS",(select
      8                                                               xmlagg(xmlelement("ITEMROW",xmlforest(order_item_id,
      9                                                                                                     order_id,
    10                                                                                                     product_id,
    11                                                                                                     unit_price,
    12                                                                                                     quantity)
    13                                                                                )
    14                                                                     ) from demo_order_items i where i.order_id=o.order_id)
    15                                                       )
    16                                     )
    17                          )
    18                   ).extract('/*') as yourXML
    19    from demo_orders o; 
    YOURXML
    <ROWSET>
      <ROW>
        <ORDER_ID>1</ORDER_ID>
        <CUSTOMER_ID>1</CUSTOMER_ID>
        <ORDER_TOTAL>1200</ORDER_TOTAL>
        <ORDER_TIMESTAMP>2009-12-28T10:19:01.464</ORDER_TIMESTAMP>
        <USER_ID>2</USER_ID>
        <ITEMS>
          <ITEMROW>
            <ORDER_ITEM_ID>1</ORDER_ITEM_ID>
            <ORDER_ID>1</ORDER_ID>
            <PRODUCT_ID>1</PRODUCT_ID>
            <UNIT_PRICE>1200</UNIT_PRICE>
            <QUANTITY>1</QUANTITY>
          </ITEMROW>
        </ITEMS>
      </ROW>
      <ROW>
        <ORDER_ID>2</ORDER_ID>
        <CUSTOMER_ID>2</CUSTOMER_ID>
        <ORDER_TOTAL>599</ORDER_TOTAL>
        <ORDER_TIMESTAMP>2009-12-28T10:19:01.464</ORDER_TIMESTAMP>
        <USER_ID>2</USER_ID>
        <ITEMS>
          <ITEMROW>
            <ORDER_ITEM_ID>2</ORDER_ITEM_ID>
            <ORDER_ID>2</ORDER_ID>
            <PRODUCT_ID>2</PRODUCT_ID>
            <UNIT_PRICE>199</UNIT_PRICE>
            <QUANTITY>1</QUANTITY>
          </ITEMROW>
          <ITEMROW>
            <ORDER_ITEM_ID>3</ORDER_ITEM_ID>
            <ORDER_ID>2</ORDER_ID>
            <PRODUCT_ID>8</PRODUCT_ID>
            <UNIT_PRICE>50</UNIT_PRICE>
            <QUANTITY>2</QUANTITY>
          </ITEMROW>
        </ITEMS>
      </ROW>
    </ROWSET>The extract('/*') method it's only useful to get a pretty formatted output. Remove it in your production applications for better performances and space saving.
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2009/12/27/inviare-email-dal-db-utilizzando-utl_smtp/]

  • How to generate PDF from XML output without XML publisher

    Hi,
    I am facing a problem while splitting the rdf generated XML output.
    Problem Description:
    I have a oracle invoice report which runs once every day (scheduled program). This report fetches me the invoices generated on that day and needs to be Mailed / Faxed to the customers.
    So i developed the report in such a way that it generates the output order by customers...since the output generated will be as one .out file in APPLCSF/out directory...the .out file needs to be splitted by customers, for which i have written a cursor which takes the data of the main query and submits that many requests as many as customers are there.....There is a possibility of having 1000 customers per day also. If that is the case then my main program will fire that many requests.
    Is there a different approach......any inputs are highly appreciated.
    Also, i am generating the output in XML format. Is there a way from which i can directly generate a PDF from that XML output rather using any other tool.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

    Hi,
    with Reports Bursting and the defined "distributions" it's possible to have one report splittet to several parts with different receipients. Have a look at http://download-uk.oracle.com/docs/cd/B14504_01/dl/bi/B13673_01/pbr_dist.htm.
    With xsl-fo it's possible to create pdf out of xml ... that's what xml publisher is doing.
    Regards
    Rainer

  • How to parse the following xml file

    Hi
    I have an xml file with the following data
    Example.xml
    <?xml version="1.0" encoding="iso-8859-1"?>
    <html><set label="09/07/29" value="1241.90"/>
    </html>
    How do i retrive the values of the attributes
    Example i want the label value 09/07/29
    and 1241.90 to be inserted into some temp table.
    Appreciate if any one can provide me the solution.
    Thanks,

    it's more an XQuery question than DB XML one.
    Anyway, you can use the following queries to get attributes values:
    doc(<your_doc>)/html/set/@label
    doc(<your_doc>)/html/set/@valueYou can retrieve both values in a single query, but for this please refer to the XQuery specification.
    Or read: [http://www.oracle.com/technology/documentation/berkeley-db/xml/gsg_xml/java/xquery.html#xqueryintro]
    Best,
    Vyacheslav

  • How to do the following XML/XSLT operation in a Java Oracle function?

    I'd like to write a Java method with the following signature...
    public static oracle.xdb.XMLType bwdtransform(java.lang.String suname, oracle.sql.CLOB documentText)
    The documentText is simply a CLOB that contains the XML. It needs to have two XSLT stylesheets applied to it, then made into an XMLType and returned.
    Another requirement is that the stylesheets have to have the Java XPath extensibility, which is available using the namespace "xmlns:java.lang.String="http://www.oracle.com/XSL/Transform/java/java.lang.String".
    I've tried a couple of different ways using oracle.xdb.XMLType.transform() and the classes in the oracle package oracle.xml.parser.v2.*, which is what the listing I pasted in below is based on, but I haven't been able to get anything to work. I THINK the XMLType.transform failed because I was using the Java XPath extensions.
    I'd appreciate it if there's a standard Oracle recommended way to do this operation, preferably as optimized as possible.
    Here btw is the current code I'm using which isn't working. Any variables that you see that aren't initialized in the function are static to the class and initialized in a static {} block including the stylesheets which are instances of XSLStylesheet.
    public static XMLType bwdtransform(java.lang.String suname, oracle.sql.CLOB documentText) throws Exception {
    parser.parse(new ByteArrayInputStream(clobToString(documentText).getBytes()));
    XMLDocument documentTextXMLDocument = parser.getDocument();
    XMLDocumentFragment docFrag = processor.processXSL(twiddlerXSLStylesheet, processor.processXSL(adopterXSLStylesheet, documentTextXMLDocument));
    Document intermediateDoc = docFrag.getOwnerDocument();
    XMLType x = new XMLType(conn, intermediateDoc);
    return x;
    I haven't been able to find any way to make this work and any any help in that direction would be oh so greatly appreciated.
    For completeness, here's the version of Oracle I'm running, according to sqlplus...
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Apr 30 20:24:53 2009
    Thanks!
    Ralph

    The XMLDB way of doing this like this would be something like the following examples:
    SELECT XMLtransform(x.xmlcol,
              DBURIType('/XDB/STYLESHEET_TAB/ROW[ID=1]
                               /STYLESHEET/text()').getXML()).getStringVal()
           AS result
    FROM  po_tab x; or
    SELECT XMLtransform(x.xmlcol,
                (SELECT stylesheet FROM stylesheet_tab WHERE id=1)).getStringVal()
              AS result
    FROM  po_tab x; or use DBMS_XSLPROCESSOR...

  • How to Convert the following XML? using XSLT Mapper?

    Hey all,
    I have a simple looking but complex problem
    I have a XML file like this
    <userdata>
    <city> new york</city>
    <address>San Fransico </address>
    </userdata>
    My result XML should look like this
    <UserDetails>
    <Details>
    <id>1234</id>
    <place>new york</place>
    </Details>
    <Details>
    <id>42345</id>
    <place>San Fransico </place>
    </Details>
    </UserDetails>
    I tried things but they never worked.
    Any help regarding this will be of great helpppppppppppppppppppppppppp!!
    Thanks in advance
    -Murthy.

    You can use XSLT. Between, where do you want to get the ID values of the place tag in result xml.
    --Shiv                                                                                                                                                                                                                       

  • How to access the following xml data in Flex

    <users>
    <user dept id="HR">
         <user>
              <fname>mm</fname>
              <email>[email protected]</email>
         </user>
         <user>
              <fname>sss</fname>
              <email>[email protected]</email>
         </user>
    </dept>
    <user dept id="Finance">
         <user>
              <fname>ffff</fname>
              <email>[email protected]</email>
         </user>
         <user>
              <fname>www</fname>
              <email>[email protected]</email>
         </user>
    </dept>
    </users>
    using HTTP service through access the data
    this my user.xml file i want to display all the item in flex datagrid using tab navigator function................ each tab navigator contain one data grid for corresponding Dept like HR, sales , Finance
    corresponding information will display in data grid
    first tab navigatore is
    HR ->  data grid field like fname , Email
    finance -> fname, E Mail

    great for quick reply
    my XML file is data.xml
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    private var myUser:XML =
    <users>
    <dept id="hr">
        <user>
            <firstName>murali</firstName>
            <emailAddress>[email protected]</emailAddress>
        </user>
        <user>
            <firstName>bharathi</firstName>
            <emailAddress>[email protected]</emailAddress>
        </user>
        <user>
            <firstName>vasa</firstName>
            <emailAddress>[email protected]</emailAddress>
        </user>
    </dept>
    <dept id = "finance">
        <user>
            <firstName>mohan</firstName>
            <emailAddress>[email protected]</emailAddress>
        </user>
        <user>
            <firstName>vinoth</firstName>
            <emailAddress>[email protected]</emailAddress>
        </user>
    </dept>
    <dept ="sales">
        <user>
            <firstName>manoj</firstName>
            <emailAddress>[email protected]</emailAddress>
        </user>
        <user>
            <firstName>deepan</firstName>
            <emailAddress>[email protected]</emailAddress>
        </user>
    </dept>
    </users>
    codings i used
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="absolute" creationComplete="htp.send()">
        <mx:HTTPService id="htp" url="data.xml"
            result="resulthandler(event)"
            fault="faulthandler(event)"/>
            <mx:Script>
                <![CDATA[
                    import mx.collections.ArrayCollection;
                    import mx.rpc.events.FaultEvent;
                    import mx.rpc.events.ResultEvent;
                    [Bindable] private var userlist:ArrayCollection;
                    private function resulthandler(event:ResultEvent):void
                        userlist=(htp.lastResult.user.dept.user);
                    private function faulthandler(event:FaultEvent):void
                ]]>
            </mx:Script>
            <mx:TabNavigator>
            <mx:Repeater id="rep" dataProvider="{data.dept}"> <!--data.xml is my fle name-->
                <mx:Canvas label="{rep.currentItem.@id}">
                    <mx:DataGrid dataProvider="{rep.currentItem.user}">
                        <mx:columns>
                            <mx:DataGridColumn headerText="Name" dataField="fname"/>
                            <mx:DataGridColumn headerText="E Mail" dataField="email"/>
                        </mx:columns>
                    </mx:DataGrid>
                </mx:Canvas>      
            </mx:Repeater>
    </mx:TabNavigator>
    </mx:Application>
    its not show anything

  • Voice command , how to generate the coefficien​ts and output as matrix

    Hello. I am trying to do a program that can tell"1.2.3.4"   I found a template on the internet,Firstly it generate the coefficients and output it to a Real Matrix  just like the following picture. However,I don't know how can I record my own coefficients in the matrix, how can I introduce these in my dictionary,could you please help me out?

    Don't start multiple threads. It just wastes people's time. Keep it to the original thread - http://forums.ni.com/t5/LabVIEW/labview-voice-reco​gnition-how-to-transfer-your-voice-into-MFCC/m-p/2​...
    Try to take over the world!

  • A better way to generate the needed XML?

    I am working on a 10.2 system and looking to see if there is a better way to generate the resulting XML than what I have come up with. Here is a test case and the output it generates. I don't really like querying the table for each column needed as the real table has eight columns I am pulling. I would like to make one pass on person_h and get the info needed instead of making eight passes, but not sure if it is possible.
    with person_h as
       (select 1 id, 'M' gender, 'W' race, '170' weight from dual union all
        select 1, 'M', 'W', '170' from dual union all
        select 1, 'M', 'W', '180' from dual union all
        select 1, 'M', NULL, '175' from dual union all
        select 1, NULL, 'W', NULL from dual
    select xmlelement("Person",
             (select xmlagg(xmlelement("Sex", gender))
                from (select distinct gender
                        from person_h
                       where id = 1
                         and gender is not null) pg),
             (select xmlagg(xmlforest(race as "Race"))
                from (select distinct race
                        from person_h
                       where id = 1) pg),
             (select xmlagg(xmlforest(weight as "Weight"))
                from (select distinct weight
                        from person_h
                       where id = 1) pg)
           ).getstringval()
      from dual;
    Output
    <Person>
      <Sex>M</Sex>
      <Race>W</Race>
      <Weight>170</Weight>
      <Weight>175</Weight>
      <Weight>180</Weight>
    </Person>Note: Previously posted on the XML DB forum at A better way to generate the needed XML? but still looking for other solutions so putting in front of more eyes here. I have considered using a WITH statement to do the initial query on person_h but haven't tested that yet to see what Oracle really will do as just getting back around to this lower priority task of mine.

    I'm using the WITH statement to simulate a table and DUAL/UNION ALL to create data in that "table". I've seen it used plenty of times in this forum so not sure why a problem for this example. The actual SQL/XML statement hits that "base table" three times, so I didn't include all eight columns because three columns is sufficient to show the problem in the way I coded the SQL. Following the SQL is the sample OUTPUT that SQL statement generates and that is the output I created and need. I'm just looking for other options to achieve the listed output.

  • How to generate the BPEL interface from XSD?

    I am new to the BPEL. How to generate the BPEL interface from XSD because I need the inputed payload to have a complex type instead the simple string?
    Thank you

    I made the following change to the xsd file, however when the input type change to emailDataType, it is underline by red color. and the bpm process, activity guide, organization become the unknown project object.
    <?xml version="1.0" encoding="UTF-8"?>
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/SampleBPM/SampleEmailNotification/SendEmail"
         xmlns="http://www.w3.org/2001/XMLSchema">
         <element name="process">
              <complexType>
                   <sequence>
                        <element name="input" type="emailDataType"/>
                   </sequence>
              </complexType>
         </element>
         <element name="processResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    <complexType name="emailDataType" >
    <sequence>
    <element name="toEmailAddress" type="string" />
    <element name="ccEmailAddress" type="string" />
    <element name="emailSubject" type="string" />
    <element name="emailContent" type="string" />
    </sequence>
    </complexType>
    </schema>
    The XSD file is viewed by the design mode is fine on JDeveloper. Please help!

  • 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>

  • How to use the validation.xml in struts validation?

    Can any one please help me, how to use the validation.xml in struts validation? possible please give me simple example.
    Edited by: SathishkumarAyyavoo on Jan 31, 2009 12:03 PM

    These 2 are the good articles for the beginners to do validation things in Struts. you can follow any one of them.
    1. [http://viralpatel.net/blogs/2009/01/struts-validation-framework-tutorial-example-validator-struts-validation-form-validation.html]
    2. [http://www.vaannila.com/struts/struts-example/struts-custom-validation-example-1.html]
    All the best.

  • How to convert the Report Builder output to .xls

    Dear All,
    Let me please know how to convert the Report Builder output to Excel Format.
    As there are having the facility to convert the output in .PDF or .HTML format but i want to convert that into Excel Sheet......
    Please Guide me in this regards
    Thanks in advance
    Regards,
    Vishal......

    Hello,
    If your question is about the format spreadsheet, it is not possible from Reports Builder :
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/whatare/output/output_a_simpleexcel.htm
    Restrictions
    It is not possible to generate spreadsheet output directly from Reports Builder. Instead, on the command line, you can run the report using rwrun or Reports Server clients (rwservlet, rwclient, rwcgi), with DESFORMAT=SPREADSHEET. You cannot store DESFORMAT=SPREADSHEET as a system parameter value in the report definition (.rdf file).
    Regards

  • Hi How to generate vendor specific XML files

    Hi all!
    This is satish. I have  aquestion as:
    <b>How to generate vendor specific XML</b> files for deploying in Web Application server like weblogic9.0
    Please help me!
    Thanks in advance!!!

    Hi Satish
    AFAIK there are nwds plugins where you can convert Weblogic / jboss specific were you can convert it in to  SAP Web AS specific descriptor files .
    you can find these here http://media.sdn.sap.com/html/submitted_docs/sap_j2ee_migration_kit_webpages/external_docs/SAP_J2EE_Migration_Plugin.zip
    I am afraid there are no such plugins avaialble. You have to do the conversion of these vendor specific file manually or you will have to search for eclipse plugins which can do this
    Hope this helps. please do not forget to reward points
    regards
    rajesh kr

  • Script:how to solve the following

    Hi to all,
    Can u please tell me how to solve the following:
    Created standard texts, styles, character strings and called them in layout sets copied the standard layout set from client '000' further modified the layout according to requirements.
    Thanks in advance.
    Regards
    Monalisa

    STATUS in USER_OBJECTS
    "OBJECT_NAME"
    "SUBOBJECT_NAME"
    "OBJECT_ID"
    "DATA_OBJECT_ID"
    "OBJECT_TYPE"
    "CREATED"
    "LAST_DDL_TIME"
    "TIMESTAMP"
    "STATUS"
    "TEMPORARY"
    "GENERATED"
    "SECONDARY"
    "NAMESPACE"
    "EDITION_NAME"
    "CUSTOMERS"
    70645
    70645
    "TABLE"
    03-AUG-13
    03-AUG-13
    "2013-08-03:17:59:09"
    "VALID"
    "N"
    "N"
    "N"
    1
    "CUSTOMERS_PK"
    70646
    70646
    "INDEX"
    03-AUG-13
    03-AUG-13
    "2013-08-03:17:59:09"
    "VALID"
    "N"
    "N"
    "N"
    4
    "DEPARTMENTS_PK"
    70656
    70656
    "INDEX"
    03-AUG-13
    03-AUG-13
    "2013-08-03:18:32:32"
    "VALID"
    "N"
    "N"
    "N"
    4
    "EMPLOYEES"
    70657
    70657
    "TABLE"
    03-AUG-13
    03-AUG-13
    "2013-08-03:18:32:57"
    "VALID"
    "N"
    "N"
    "N"
    1
    "DEPARTMENTS"
    70655
    70655
    "TABLE"
    03-AUG-13
    03-AUG-13
    "2013-08-03:18:32:32"
    "VALID"
    "N"
    "N"
    "N"
    1
    "EMPLOYEES_PK"
    70658
    70658
    "INDEX"
    03-AUG-13
    03-AUG-13
    "2013-08-03:18:32:57"
    "VALID"
    "N"
    "N"
    "N"
    4
    "SUPPLIERS"
    70659
    70659
    "TABLE"
    03-AUG-13
    03-AUG-13
    "2013-08-03:20:25:41"
    "VALID"
    "N"
    "N"
    "N"
    1
    "SUPPLIERS_PK"
    70660
    70660
    "INDEX"
    03-AUG-13
    03-AUG-13
    "2013-08-03:20:25:41"
    "VALID"
    "N"
    "N"
    "N"
    4
    "PRODUCTS"
    70661
    70661
    "TABLE"
    03-AUG-13
    03-AUG-13
    "2013-08-03:20:28:32"
    "VALID"
    "N"
    "N"
    "N"
    1
    "PRODUCTS_PK"
    70662
    70662
    "INDEX"
    03-AUG-13
    03-AUG-13
    "2013-08-03:20:28:32"
    "VALID"
    "N"
    "N"
    "N"
    4
    "PERSONS_PK"
    70687
    70687
    "INDEX"
    10-AUG-13
    10-AUG-13
    "2013-08-10:22:37:34"
    "VALID"
    "N"
    "N"
    "N"
    4
    "PERSONS"
    70686
    70686
    "TABLE"
    10-AUG-13
    10-AUG-13
    "2013-08-10:22:37:34"
    "VALID"
    "N"
    "N"
    "N"
    1
    "APEX_SYS_PCK"
    70776
    0
    "PACKAGE"
    13-AUG-13
    15-AUG-13
    "2013-08-15:19:56:47"
    "INVALID"
    "N"
    "N"
    "N"
    1
    "GET_LOGIN_CREDENTIALS"
    70775
    0
    "PROCEDURE"
    13-AUG-13
    13-AUG-13
    "2013-08-13:22:26:49"
    "INVALID"
    "N"
    "N"
    "N"
    1
    "APEX_SYS_PCK"
    70792
    0
    "PACKAGE BODY"
    15-AUG-13
    15-AUG-13
    "2013-08-15:19:56:47"
    "INVALID"
    "N"
    "N"
    "N"
    2
    "EMP_MAINT"
    70802
    0
    "PACKAGE"
    15-AUG-13
    15-AUG-13
    "2013-08-15:19:54:39"
    "INVALID"
    "N"
    "N"
    "N"
    1

Maybe you are looking for

  • Order Scheduling error

    Hi Gurus, I have done settings for new production order type. i have 2 errors. 1 when i create a production order system throws error message that scheduling parameters for the order not maintained. i have checkecd in OPU3 IN Detailed Schediling the

  • Itunes 9.2 Not transferring purchases from iPad to Laptop

    I've never had a problem transferring applications from Iphone -> iPhone 3G -> iPhone 3GS -> iPad. But today, when I was attempting to transfer my applications to the iPhone 4, they did not appear. 2 Hours of troubleshooting (and a few calls to apple

  • How to save to .doc or .rtf without loosing formatting

    Hi, I have to submit academic assignments with either .doc or .rtf file extensions. However, in the University there is a protocol for headers and footers so that the assignment is anonymous and when quoting from reference documents we have to indent

  • Invalid Numeric Value Error in CS3

    I was editing the kerning on a project, and accidentally hit a letter or something. When I hit enter an invalid numeric error panel popped up which was fine. Except when I hit the "OK" button it just pops up again and again and won't go away. Now I m

  • Changing the Cursor Width

    Hai all, I have an application in which I am not able to see the Keyboard cursor clearly. Can anyone help me in increasing the Keyboard Cursor width through Oracle Forms 6i. Thanks.... Bye.. Badari Hareesh.