Generate a File XML in Forms with PL/SQL

Hi Friends!
I need to generate a file XML and validate it with a XSD schema!
I see some ways to generate a file with a QUERY.
But i cant generate a file with a Query because my datas existing in diferent tables and isn't possible to create in a query! I need to construct the XML step by step... creating the nodes and subnodes... setting values to the nodes and so on!
I see a class java called by Marshall and i created a bean to generate XML but it is so slow even in a powered server!
How can i do this in PL/SQL?????
Somebody can help me!!

http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_xmldom.htm#sthref10098
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb10pls.htm#sthref1389
Regards.

Similar Messages

  • Q_1 - Q_2 DataLink. Q_2 columns are not apperaing in Generate to file - XML

    Dear experts i have developed a report in 6i against Oracle Applications 11i, Purchasing Module ...... I have two Queries in DataModel Q_1<->Q_2 with DataLink. The only problem is Q_2 columns are not appearing in Generate to file -> XML.
    I developed similar style report against scott/tiger tables and Q_2 columns are appearing in XML. their are no wrong settings like "Exclude from XML output"
    Generate to file -> delimited, html, pdf etc are working OK for both APPS and Scott RDFs.
    Does this have something to do with what is mentioned here (though for 10g, point 17.1.4) ...
    http://web.deu.edu.tr/oracle/B14099_16/aix.1012/relnotes.1012/relnotes/reports.htm
    QUOTE
    17.1.4 Limitation on Linked Queries for DelimitedData Output
    DelimitedData output does not allow multiple queries to be linked to the main query, because sibling groups are not supported.
    For example:
    Case 1: You have a link between Q1 and Q2, a link between Q2 and Q3, and a standalone Q4
    query.
    Q1<-->Q2<-->Q3 Q4
    In this case, DelimitedData output is generated correctly.
    Case 2: You have a link between Q1 and Q2, a link between Q2 and Q3, and a link between Q4 and Q1.
    Q1<-->Q2<-->Q3 Q1<-->Q4
    In this case, DelimitedData output is not generated correctly. Alternatively, you can use XML output.
    Thank you
    Edited by: user473160 on Jun 3, 2009 12:05 PM

    Hi,
    no, the mentioned delimited text restrictions do not apply to XML-output...
    Hm, try to take your report and use the wizard to generate a paper layout to see if the data is really "appearing" due to your data model.
    Maybe there is some problem in the data link... e.g. number to character conversion in the datatypes that causes the problem...
    Cheers,
    Jens Rettig

  • XML Publisher Report with PL/SQL

    Hi
    Like to know how to develop the XML Publisher Report with PL/SQL, i did the following
    1. created a pkg like as below
    CREATE OR REPLACE PACKAGE BODY APPS.TEST_XMLTAG_PKG AS
    PROCEDURE main (errbuf OUT VARCHAR2,
    retcode OUT NUMBER
    ) IS
    BEGIN
    DECLARE
    ctx DBMS_XMLGEN.ctxHandle;
    xml CLOB;
    BEGIN
    ctx := dbms_xmlgen.newcontext('select * from scott.emp');
    dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
    xml := dbms_xmlgen.getxml(ctx);
    dbms_output.put_line(xml);
    Fnd_file.put_line (fnd_file.LOG, XML);
    END;
    END;
    END TEST_XMLTAG_PKG;
    this pkg produces the output with xml tag in the view log.
    I have registered the conc program & xml rtf but it does not produce the output in PDF, , I am not able to get the xml tag when i click the Diagnostics --> View XML.
    can you please let me know the next steps involved.
    Regards
    Yram

    I think the problem is because there is no begin and end tag. save the xml from the logfile and open with xml editor or IE.. then you will see the problem.
    add Begin and end tag...then you should be fine.. i.e
    fnd_file.put_line(fnd_file.output,'<EMP_DATA>'); -- begin Tag
    tx := dbms_xmlgen.newcontext('select * from scott.emp');
    dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
    xml := dbms_xmlgen.getxml(ctx);
    dbms_output.put_line(xml);
    Fnd_file.put_line (fnd_file.LOG, XML);
    fnd_file.put_line(fnd_file.output,'</EMP_DATA>'); -- End Tag
    Hope this helps..>Good Luck
    Ravi

  • How to develope a XML-RPC client with PL/SQL

    Anyone know how to develop a XML-RPC client with PL/SQL?
    I've oracle 8i.
    Have you some example of code?
    Thanks
    Paolo

    So, you actually want to create the physical directory using JAVA?
    Then see:
    http://www.oracle-base.com/articles/8i/shell-commands-from-plsql.php

  • Generate Photo Gallery XML for Spry with Adobe Bridge

    Wanted to post a note to what I've discovered/worked out -- a
    way to
    generate a very useful photos.xml from Adobe Bridge. If you
    use Bridge,
    it's very easy to add titles, keywords, ratings -- all kinds
    of metadata
    that one might use in a photo gallery. Here it is in case
    anyone wants
    to use.
    The script is based on one I found at the Adobe User to User
    Bridge
    Scripting Forum for exporting a CSV file.
    Note 1: this particular script doesn't take into account
    CDATA that
    might exist in your metadata, like ampersands in your title.
    I've just
    avoided using those, but you could also have the script write
    out a
    CDATA node for that info instead.
    Note 2: this script does not write out a thumbpath,
    thumbwidth or
    thumbheight attribute. But usually the thumbpath is the exact
    same as
    the regular "path" attribute, and the thumbwidth and
    thumbheight are
    just a ratio of the regular "width" and "height" attributes.
    I added a
    bit of JS to the gallery.js file to calculate those before
    growing the
    thumbnail on rollover.
    Personally I'm using keywords as categories and titles as
    captions and
    sorting by rating (stars in Bridge), so here's the .jsx file
    I created.
    The script should be saved to the folder "StartupScripts" in
    Program
    Files/Common Files/Adobe.
    Hope this is useful for others too!
    #target bridge
    if (BridgeTalk.appName == "bridge" ) {
    // create menu
    var menu = MenuElement.create( "command", "Export XML File",
    "at the end
    of Tools");
    menu.onSelect = function(m) {
    try {
    // ask for the name of the output file
    var f = File.saveDialog("Export XML file to:", "XML
    File:*.XML");
    if ( !f ) { return; }
    // open filestream and write first line
    f.open("w");
    f.writeln("\<photos\>\r\r");
    // get a list of all the visible thumbnails in Bridge
    var items = app.document.visibleThumbnails;
    for (var i = 0; i < items.length; ++i) { var item = items
    f.writeln("\<photo path = \"" + item.name + "\"" + "\r" +
    "width = " +
    "\""+ getWidth(item) + "\"" + "\r" + "height = " + "\""+
    getHeight(item)
    + "\"" + "\r" + "rating = " + "\""+ getRating(item) + "\"" +
    "\r" +
    "categories = " + "\""+ listKeywords(item) + "\"" + "\r" +
    "caption = "
    + "\""+ getTitle(item) + "\"" + " \>" + "\r" +
    "\<\/photo\>\r\r" ); }
    f.writeln("\<\/photos\>");
    f.close();
    } catch(e) {
    function getTitle(tn) {
    md = tn.metadata;
    md.namespace = "
    http://purl.org/dc/elements/1.1/";
    var varTitle = md.title;
    return varTitle;
    function getWidth(tn) {
    md = tn.metadata;
    md.namespace = "
    http://ns.adobe.com/tiff/1.0/"
    var varWidth = md.ImageWidth;
    return varWidth;
    function getHeight(tn) {
    md = tn.metadata;
    md.namespace = "
    http://ns.adobe.com/tiff/1.0/"
    var varHeight = md.ImageLength;
    return varHeight;
    function getRating(tn) {
    md = tn.metadata;
    md.namespace = "
    http://ns.adobe.com/xap/1.0/"
    var varRating = md.Rating;
    return varRating;
    function listKeywords(tn) {
    md = tn.metadata;
    md.namespace = "
    http://ns.adobe.com/photoshop/1.0/";
    var Keywords = md.Keywords;
    var varKeywords = "" ;
    for ( var i = 0; i < Keywords.length; ++i ) { varKeywords
    = varKeywords
    + Keywords + ","; }
    return varKeywords;

    I updated the script so it exports an XML file from Bridge
    with full
    compatibility with the Spry Demo Photo Gallery, to use as
    photos.xml.
    It's at the same address:
    http://www.imagicdigital.com/spry/bridge_export_xml.zip
    To Use:
    The script goes in the folder "StartupScripts" in Program
    Files/Common
    Files/Adobe.
    Launch Bridge and browse to a folder that contains the files
    you want in
    your gallery -- the "source" folder, as it were.
    Choose the menu command "Tools > Export XML for Spry
    Gallery".
    Type a name for your XML file in the Save dialog box, choose
    a location,
    and hit "Save".
    In the dialog box that pops up, enter a max length/width for
    your
    thumbnails, in pixels. Some common sizes are "75" , "100" or
    "125".
    Hit "OK". You should see an alert pop up telling you "XML
    file
    successfully created!"

  • How to generate excel file in oracle forms 10g on client machine

    dear Sir,
    I am using just file server(installed 10g dev suite) not a oracle application server,
    I am running my application from another machine ,it running fine i want to generate excel report on client machine
    presently i m using OLE2 for fetching the data in excel , it is working fine but it generates the excel file on file server machine and i want get the output excel on the client machine. aftre OLE2 i m using CLIENT_OLE2 with webutil (instead of OLE2) its get compile successfully but during runtime it give error "oracle.forms.webutil.ole.OleFunctions bean not "found.CLIENT_OLE2.create_obj will not work"
    *so please tell me without oracle application server is this possible or not .*

    your webutil on server side is not configured
    you need to re install the webutil jacob.dll files etc. then it will work fine..
    you can also generate excel file using reports to change the destination format in SPREADSHEET

  • How to generate a file from JSP form

    Hi,
    I want to generate a file from the informations of a form(JSP).
    Which classes do I have to use ?
    Thanks.

    Of course you have to use the standard servlet classes to retrieve the request parameters from the form.
    ie request.getParameter();
    package "java.io" gives you File input/output ability.
    If you are generating a text file, thats probably the BufferedWriter and FileWriter classes.
    Cheers,
    evnafets

  • Generate .PDF file from Oracle Form and print .pdf

    Hello, I am new to oracle form. I need direction on how to create .pdf file on a button click.
    The requirement is when user click a button on a form, I need to write some data to the pdf file and open the .pdf file for print.
    I am using Oracle Form builder 10.1.2.0.2
    Thanks a lot! Please help!

    Dear all,am new to oracle report and oracle forms and i know the
    basics how to generate the report and to create the form, Now my doubt is, like generating report
    from oracle report how to generate the report from oracle from,should i add any command button? and where
    to add the coding and what coding ? when i click that command button the report should be generated like oracle
    report,what should i do?Please help me to learn.
    my table name is 'student' and it has the following columns,
    sid,sname,grade,result.
    Am using oracle from 10.1.2.0.2 version and
    oracle report version is 10.1.2.0.2.
    Please give step by step procss.
    Thank you.

  • Error in maintenance optimizer generating Stack File XML

    Hi all,
    In step 3 "Download Files" of maintenance optimizer transaction to implement the EHP5 of ERP, In the tab "Log" I see the following error.
    *Collecting XML adjustment input data done with error or warning.
    Message no.AGS_MOPZ_PLAN_MSG144*
    The stack XML file is very very important to the ehpi installer, then I need to know which implications have the error below...
    I create 3 Maintenance Optimizer transactions, and in all of them, the error appears.
    Thanks  a lot.

    Hello,
    Please check if the SPAM level of the Solution Manager is the latest.
    If this does not help, please check the details about the error message in transaction SLG1 (this transaction is the full application log). There should be extra text / error message explaining the situation, you only have to look for the error around the time when you got the 'Collecting XML adjustment input data done with error or warning' message.
    Best regards,
    Miguel Ariñ

  • How to upload files from a form using pl/sql ?

    Hi
    Is it possible to upload the physical files outside the database (under UNIX server)using pl/sql? I already know how to store the files inside the database(wwwdoc_documents$) but I didn't find any documentation about storing the physical files outside the database.
    I have in my form the following component:
    <input type="file" name="upload">
    and I want to let the user browse for the file on his/her disc that he want to use. What I want to do next is to save a copy of that file on our file-server, and then use it in my application. How do I do that in pl/sql?
    Any help will be appreciated.
    Sebas.

    Thanks for the suggestion. I like this approach as Java is more familiar to me than other languages.
    Our DBA is out of touch today, so I could not grant the javauserpriv to my database user. I tried to run the script anyway in the chance that my user had the privs, and it seemed to have hung. I am now combing Oracle's site for more documentation so I can write some tests to see if I can get a basic Java object working. Under what heading would I find this?
    ajt

  • How to create ViewObject to generate file xml?

    Hello everybody...
    Folks I would like to know if is possible to create a ViewObject to generate a file xml.
    In other words, I have a table in database and I need to generate a file xml based on this table.
    Anyone already did that?
    ADF Swing.
    JDeveloper Studio 11.1.1.4.0.

    Hello everybody, (Good morning in Brasil)...
    Thanks "*Raj Gopal*"...
    I have seen that exist several way to generate xml based on a table from database, however what is the better form (or more correct)???
    In the my case, I'll need to generate a file xml based on a table, and posteriorly I'll have to retrieve this xml and to save in the database.
    In other words I'll have to do import and export of files xml-db db-xml.
    What is the better way?*
    Swing ADF.
    JDeveloper Studio 11.1.1.4.0
    Thanks in advanced.
    Edited by: Le on 23/05/2011 06:14
    Edited by: Le on 23/05/2011 06:15

  • Troubles creating a form with Acrobat

    I have created a form with Acrobat 9 Pro. However, when it is brought up with Acrobat Reader, the following message appears:
    Sending data files by email: Please note, this form contains an email submit button. Clicking this button will email a data file... However, the form itself will not be sent. Remember you cannot save a complete file of this form with Adobe Reader 9.
    When the submit button is clicked, the following message is posted on a popup window.
    Operation not permitted.
    Here's the link to a form I am trying to get to work. It works fine if I use the Pro version, but the Reader version doesn't want to allow the form to be sent. http://www.drugfreedekalbcounty.info/pdf/interventionscholarshipform.pdf
    Any help would be appreciated. Thanks.

    It may have been improved with AA9, but at least up through AA8, Acrobat required the use of MAPI on the machine to deal with e-mail. If that has changed, then the other recommendation to use extended rights might meet your need. There is a 500 use limitation for the extended rights (more requires negotiation with Adobe). This may be a limitation that changed with AA9 Pro Extended.
    The rights are not needed if the data file is sent and not the whole PDF. There is no need for the whole PDF since the data file can be opened in the original form document - giving the same result. Your observation that it works in AA9 for e-mail is making the assumption that everyone uses AA9. That is a dangerous assumption if you are developing a general use form. You should assume folks have back to AA7, or even AA5 (like I have on this machine). There are still a few that check in here on occasions with AA4. I have not seen an AA3 question for several years. Thus backward compatibility may be an issue, depending on your client base.
    The cleanest way to work with forms is to submit to a web script. Then there is no question about the end result. The use of web scripts is even recommended for online html forms for much the same reasons. I was giving a heads up so that you have considered possible users that do not have the newest and best, assuming that the latter resolves the e-mail issue.

  • Problem Displaying generated Markup File (CLOB column)

    Dear Colleague,
    I am attempting to display the results of a generated Markup File in a Forms Text Item. The code (Below) is in a WHEN-BUTTON-PRESSED trigger.
    Step 1: generates the markup file and stores it in the MARKUP_DOCUMENTS table.
    Step 2: Copies the clob column DOCUMENT to the clob variable MYCLOB
    --> At Step 2, my form crashes !!!
    Is Oracle Forms not able to process CLOBs? The form was compiled as if there was no problem.
    How can I access the results of the generated Markup File in the MARKUP_DOCUMENTS table and present it to the Oracle Forms user?
    Best regards,
    Randy
    declare
    myclob clob := empty_clob();
    read_amount number(4):= 500;
    read_offset number(4):= 1;
    buffer varchar2(500) ;
    begin
    -- Step 1:
    ctx_doc.markup(index_name => 'documents_index',
    textkey => to_char(:hitlist_block.id),
    text_query => :search_block.search_clause,
    restab => 'markup_documents',
    query_id => '1',
    plaintext => TRUE);
    -- Step 2:
    SELECT document
    INTO myclob
    FROM markup_documents
    WHERE query_id = 1;
    -- Step 3:
    dbms_lob.read(myclob, read_amount, read_offset, buffer);
    -- Step 4:
    :markup_block.markup_text := buffer;
    go_block ('markup_block');
    exception
    when others then
    message ('Document could not be displayed: '||dbms_error_text);
    end;

    Hello,
    This is what i use to display an HTML Forms Text Item:
    Declare
       lc$Texte  Varchar2(2000) ;
       lf$fic client_text_io.file_type ;
    Begin
       lf$fic := client_text_io.fopen('c:\test.htm', 'w');
       client_text_io.put_line( lf$fic, '<html>' ) ;
       client_text_io.put_line( lf$fic, '<script language="JavaScript">' ) ;
       client_text_io.put_line( lf$fic, 'parent.window.resizeTo(600,400);' ) ;
       client_text_io.put_line( lf$fic, '</script>' ) ;
       client_text_io.put_line( lf$fic, '<body>' ) ;
       client_text_io.put_line( lf$fic, '<FONT face="sans-serif" color=#1B62AB size=2>' ) ;
       client_text_io.put_line( lf$fic, replace( :MAILS.TEXTE, CHR(10), '<br>') ) ;
       client_text_io.put_line( lf$fic, '</body></html>' ) ;
       client_text_io.fclose( lf$fic ) ;
       client_host('cmd /C START "x" iexplore.exe c:\test.htm' ) ;
       client_host('del c:\test.htm' ) ;
    End;Francois

  • Files Managing with PL/SQL

    Dear All,
    My question is about, How to handle files in NT partition with PL/SQL procedures or functions, like rename, delete......
    Best Regards.

    In 9i utl_file is capable of doing this (of course you must know the name of the file)
    You can also use java classes. See http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:439619916584 for an example
    greetings
    Freek D
    Dear All,
    My question is about, How to handle files in NT partition with PL/SQL procedures or functions, like rename, delete......
    Best Regards.

  • Filling PDF Form with XML data file

    Hello everybody.
    I need help.
    I created a form with LiveCycle Designer. I filled it and generated a XML data files. Now, I would like to fill the same blank PDF form with this XML data file.
    I know that I can do it with Adobe 8.0 but I must do it in an C# / .NET application that I have to create.
    (Forms I'm creating are not for me, I create the forms. Client uses them form but he don't have Adobe Acrobat 8.0, so he can't realise the automatic PDF filling with Adobe Acrobat 8.0)
    So I am looking for help with ".NET" "COM" or other library to help me to do it. If someone has other idea just give it.
    Thanks for your reply
    Jean Pierre (sorry for my bad English)

    Hello Mike
    Thank's for your reply. I used XPAAJ and it works very well but my company his develloping software with C# langage.
    I tried to convert XPPAJ to C#, I did it with the Java Langage Conversion Assistant but "Adobe Library" included in jar files cannot be translated to C#/.NET library. So, I can't use it.
    I found some C#/.NET API on the NET but they are very expensive and my company don't want to pay. They want me to create my own solution with library given by Adobe when you buy Adobe 8. So I am looking for this library.
    Is there an Adobe LiveCycle Designer SDK to help me.
    Thank you in advance for your reply
    Jean Pierre (student developing with LiveCycle Designer)

Maybe you are looking for

  • Scenario: SOAP message with attached .zip file to FTP ?

    Hi all, I've searched SDN etc but got no good hints to my problem. My scenario is tht we are receiving an XML message via SOAP adapter and this is a MIME multipart message so it carries also a attached zip-file. The XML and the attached zip-file shou

  • HT3296 I dont have Original remote and reset apple tv

    I dont have Original remote and reset apple tv how can I connect to settings now? The App dont see it after it set up with my ID

  • UCCX MOH Problem, multicast

    here is the setup : We have Music on hold box that have an output to a 2911 E&M card. The 2911 is configure as multicast and the CUCM use this as a Fixed MOH. At first we saw that MOH on phones was working fine but UCCX MOH was working only with the

  • To Stop Executing Script Tag in JSF

    Hi, <h:outputText value="<img src='c:\test.gif' width='4' height='8' >" escape="false"/> If i execute the above line with escape ="false" then the html tag is being executed. and if the escape="true" the tag is being printed. <h:outputText value="<sc

  • Transferring photos from ipod photo to mac

    i've transferred photos from camera to ipod using apples cammera connector. how do i now get these onto my powerbook? I've done this before, but have forgotten. thanks, richard