Project Online - Cube script for building files

Hi
We have to use Project Online for our solution and we need to build a reporting database in SQL.
Instead of building the schema manually,are there any pre built 2013 ones for use?
Also, would there be any ETL scripts for building the cubes available or are all of these only developed through paid services - ie Project Hosts, Agorain?
Regards
Sean 

Hello,
There are some SSIS package examples / blog posts you can start with but each organisation would have different requirements so it would be difficult to have a pre-built production SSIS package that suited all. The links below might help get you started
with creating your custom SQL Reporting database / data warehouse:
http://pwmather.wordpress.com/2014/03/26/projectonline-data-via-odata-and-ssis-in-sql-database-table-on-premise-msproject-sharepointonline-bi-ssrs-office365-cloud/
http://nearbaseline.com/blog/2014/04/project-site-custom-list-reporting-using-ssis-odata-connector/
http://msdn.microsoft.com/en-us/library/office/dn794163(v=office.15).aspx &
http://www.microsoft.com/en-us/download/details.aspx?id=43736
To create an OLAP cube from you custom data warehouse would required you to create the code to do that. You could look at using one of the Microsoft partners to do all of this for you as a paid service.
http://office.microsoft.com/en-gb/project/microsoft-project-partner-resources-ms-project-FX103802119.aspx
Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS

Similar Messages

  • Make a script for build table

    Hi everyone
    How to make a script for build table:
    col width 25mm
    align decimal
    align on close paren
    Thanks
    Teetan

    Hi Teetan VK,
    Merry Chrismas.
    I'm not really an InDesign scripter.
    But you can try the following code:
    // TableCreate_simple.jsx
    // regards pixxxelschubser
    var aDoc = app.activeDocument;
    // your width of every column
    var w = Number(prompt("width of columns", 25));
    var NrOfColumns = 3;
    var aTextFrame = aDoc.textFrames.add({visibleBounds:[0, 0, 30, NrOfColumns*w + 1]});
    var aTable = aTextFrame.insertionPoints[0].tables.add({columnCount:NrOfColumns,bodyRowCount:1});
    for (i=0; i<aTable.columns.length; i++) {
    aTable.columns[i].width = w;
    // Paragraph sytyle with decimal aligning should already exists in your document
    for (j = 0; j < aTable.cells.length; j++) {
        aTable.cells[j].texts[0].appliedParagraphStyle = aDoc.paragraphStyles.item("AlignDecimal");
    Be sure, that a paragraph style (named with "AlignDecimal") exists in your Document.
    But what is:
    Teetan VK schrieb:
    … align on close paren …

  • Need script for moving files to specific directories base on csv

    Hi,
    I have a question. I have about 2000 files (pdf), which I need move to specific directories and subdirectories, which are based on csv file.
    Csv is looking like this:
    filename;directoryname;subdirectoryname;subdirectoryname;.......etc.
    I have a script for creating directories with subdirectories from csv file, but I need this script for moving files to this directories.....
    Thanks a lot for every help.
    Best Regards
    Petr, OS X Mavericks

    private function snapshotLastFrame():void
    gotoAndStop( this.totalFrames );
    _bitmapData                         = new BitmapData( stage.stageWidth, stage.stageHeight );
    _bitmap                              = new Bitmap( _bitmapData );
    _bitmapData.draw ( stage );
    saveImageJPG( _bitmapData, "test.jpg", 96 );
    public function saveImageJPG( bitmapData:BitmapData, fileName:String, quality:int ):void {
                this.jpgEncoder = new JPGEncoder( quality );
                this.fileReference = new FileReference();
                this.fileReference.save( this.jpgEncoder.encode( bitmapData ), fileName + ".jpg" );
    Keep in mind that you need a few extra libraries to be able to create a jpeg.. (AS3CoreLib) can be found at googleCode.

  • Script for moving files and directory to archive

    Hi,
    I've search the web for good working script to archive my files and folder with no luck.
    do you have a script that move and preserve the structure of older files and folders that have not been accessed for X days?

    Hello, I found this quite quickly in the TechNet Gallery. It seems like it would do what you're looking to do.
    https://gallery.technet.microsoft.com/Archive-old-files-with-042f859a
    # Powershell script - move old files to an archive location.
    # Writes log files to $logpath
    # Ver 0.6
    $path = "C:\TEMP"
    $archpath = "D:\TEMP-ARCH"
    $days = "30"
    $logpath = "C:\Temp"
    $date = Get-Date -format yyyyMMddHHmm
    write-progress -activity "Archiving Data" -status "Progress:"
    If ( -not (Test-Path $archpath)) {ni $archpath -type directory}
    Get-Childitem -Path $path -recurse| Where-Object {$_.LastWriteTime -lt (get-date).AddDays(-$days)} |
    ForEach { $filename = $_.fullname
    try { Move-Item $_.FullName -destination $archpath -force -ErrorAction:SilentlyContinue
    "Successfully moved $filename to $archpath" | add-content $logpath\log-$date.txt }
    catch { "Error moving $filename: $_ " | add-content $logpath\log-$date.txt }

  • A script for moving files to folder ? or relaunch photoshop

    I'm looking for a very simple java script to check file corruption
    it should:
    1.open a file I send to it (via droplet)
    2.if it works > close the file > send the file to a folder like c:/checked/
    3.if the open sequence crashes or doesn't work > re launch photoshop
    4.mark the file as beeing corrupt or send it to a another folder
    I don t know how to move a file via java script without saving
    I don t know how I can relaunch ? force-quit photoshop ? is this even possible ?
    Regards

    Anstellos1 wrote:
    xbytor2 > thats the exact problem I'm having. If there is a "wrong" file into my batch, photoshop stop/ crash, is waiting for an action on my side... the whole idea of using photoshop droplets is to do it without me.
    Should I parse the files (I have jpegs; png and raws... parsing raws ?)? Would it be better like someone said to use a script that "try catch"? (no idea what it is or how to write this). I also red that photoshop image processing is skipping bad files, is that true ? how could I apply this technique ?
    bad file > skip > no crash > process continue running would be even better than the original validation idea
    "Unfortunately, there are types of jpeg corruptions that cause PS to  throw up a 'Broke File' dialog in spite of how you open the file or have  your DialogModes preferences set. PS just stops cold waiting for user  interaction. I'll see if I can locate one of these that I used to test  with. The last time I looked at this problem in depth (CS2 or CS3) PS  was still misbehaving.
    xbytor2 if much more of an expert than I am in the script area so will have to defer to him"
    I would have to defer to xbytor2 since he is much more of an expert than I in scripting.  If the Try....Catch construct does not work, than Image Processor in PS and also accessed by Bridge would fail under the same circumstances since that is the construct  that script uses.  Interesting
    "How would you write that ? Are you saying that if I use this script  at the beginning of my photoshop droplets, it won't crash on a bad file and continue looping on the next ?:"
    If you want to use the Try...Catch constructs looking at the Image Processor Code from ExtendScript ToolKit (or other script editor) would let you see how it operates.  They use the Try...Catch construct in multiple locations in that script.
    At the highest level in Image Processor here is the basic code below for the Try...Catch construct with most everything else stripped out.
    There are two main steps. One is to set the app.displayDialogs mode to NO. The second is to use the try...catch construct below.   The error routine is the catch portion of the code just displays the error code.  Then the dialog mode is reinstated to the original settings set by the User.   The same construct is used deeper into the code so that would be a source of at least the approach Image Processor uses.
    try {
        // remember the dialog modes
        gSaveDialogMode = app.displayDialogs;
        app.displayDialogs = DialogModes.NO;
        Code you want to execute goes here
    // Lot's of things can go wrong
    // Give a generic alert and see if they want the details
    catch( e ) {
        if ( e.number != 8007 ) { // don't report error on user cancel
            alert( e + " : " + e.line );
    // restore the dialog modes
    app.displayDialogs = gSaveDialogMode;

  • Script for downloading files from pdf placed on web, script for printing for exchange-

    Looking for java script command to set on button in pdf. We have mp3 and pdfs on our web site, example of URL: http://www.uzlicek.cz/download/Pohadky/O_holcicce_ktera_si_prala_byt_dospela.mp3
    By clicking on button/link in reader I would like to appear a dialog box with offer to Safe file as…
    Any suggestion? In case of using “link tool” the file starts downloading to cache and this is not the objective. In case of using “sound tool”, the file does not appear for saving.
    For exchange the script for Print the current page:
       var n = this.pageNum;
        var pp = this.getPrintParams();
        //pp.pageSubset = pp.subsets.all;
        //pp.printContent = pp.constants.printContent.doc;
        pp.firstPage = n;
        pp.lastPage = n;
        this.print(pp);
    Cheers Martin

    It can't be done using only a PDF file - any link to a URL will simply open your web browser, and whatever handler that browser uses when presented with MP3 files will be triggered (download, play, etc.) - nothing in the PDF can override that handler and force a "save" operation.
    Instead you'll need to configure your website to force downloads (using HTTP headers) and link to those URLs instead; which is a subject outside this forum.

  • Logon Scripts for copying files in Windows 7

    Issues using Logon scripts to copy files in windows 7.  Its default is to append the file rather than copy and replace, which is what XP did.  How can I achieve the same results using
    logon scripts in W7 to copy any files to specified folders and replacing old files.  The reason for this is that we use a software that performs offsite/onsite updates and the only way all the users can have the correct version/tables is to either manually
    update each user in a 90+ user environment or use a logon script to perform the coping of the updates.  Unfortunately the software support won’t create a (while logging in to software) patch for this.  So we have to force it during the user logon.

    Hi Novice,
    It should depend on your script content. it's recommended you ask in the official scripting guys forum for professional help:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Karen Hu
    TechNet Community Support

  • Run Script for opened files

    Hi,
    I once got a script by this thread (http://forums.adobe.com/thread/962689)
    That script gets Indesign files from a specific folder,
    now I want to change this script, so it can be used for allready opened Indesign files.
    Below is the original script (with huge thanks to Muppet Mark)
    #target indesign
    function exportFolder() {
               var i, inFolder, idFiles, doc, offSet, pdfPre, pdfFile;
               inFolder = Folder.selectDialog( 'Where\'s the folder of ID files?' );
               if ( inFolder == null ) { return };
              idFiles = inFolder.getFiles( '*.indd' );
              for ( i = 0; i < idFiles.length; i++ ) {
                        doc = app.open( idFiles[i] );
                        offSet = doc.documentPreferences.documentBleedTopOffset;
                        if ( offSet == 0 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 3 mm snit + slug' ) };
                        if ( offSet == 3 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 3 mm snit + slug' ) };
                        if ( offSet == 5 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 5 mm snit + slug' ) };
                        if ( offSet == 10 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 10 mm snit + slug' ) };
                        if ( offSet == 11 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 11 mm snit + slug' ) };
                        if ( offSet == 12 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 12 mm snit + slug' ) };
                        if ( offSet == 13 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 13 mm snit + slug' ) };
                        if ( offSet == 14 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 14 mm snit + slug' ) };
                        if ( offSet == 15 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 15 mm snit + slug' ) };
                        if ( offSet == 16 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 16 mm snit + slug' ) };
                        if ( offSet == 17) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 17 mm snit + slug' ) };
                        if ( offSet == 18 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 18 mm snit + slug' ) };
                        if ( offSet == 19 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 19 mm snit + slug' ) };
                        if ( offSet == 20 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 20 mm snit + slug' ) };
                        pdfFile = File( doc.fullName.toString().replace( '.indd', '.pdf' ) );
                        doc.exportFile( ExportFormat.pdfType, pdfFile, false, pdfPre, '', false );
                        doc.close( SaveOptions.NO );
    exportFolder();

    Hi jocstone_me,
    I modified your JS code, Please try the below code its working.
    #target indesign
    function exportFolder() {
    var i, inFolder, idFiles, doc, offSet, pdfPre, pdfFile;
    inFolder = Folder.selectDialog( 'Where to save the InDesign files?');
    if ( inFolder == null ) { return };
    idFiles = app.documents.length;
    for ( i = 0; i < idFiles; i++ ) {
        doc = app.documents[i];
        doc = app.activeDocument;
        offSet = doc.documentPreferences.documentBleedTopOffset;
        if ( offSet == 0 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 3 mm snit + slug' ) };
        if ( offSet == 3 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 3 mm snit + slug' ) };
        if ( offSet == 5 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 5 mm snit + slug' ) };
        if ( offSet == 10 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 10 mm snit + slug' ) };
        if ( offSet == 11 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 11 mm snit + slug' ) };
        if ( offSet == 12 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 12 mm snit + slug' ) };
        if ( offSet == 13 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 13 mm snit + slug' ) };
        if ( offSet == 14 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 14 mm snit + slug' ) };
        if ( offSet == 15 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 15 mm snit + slug' ) };
        if ( offSet == 16 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 16 mm snit + slug' ) };
        if ( offSet == 17) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 17 mm snit + slug' ) };
        if ( offSet == 18 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 18 mm snit + slug' ) };
        if ( offSet == 19 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 19 mm snit + slug' ) };
        if ( offSet == 20 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 20 mm snit + slug' ) };
        pdfFile = File(inFolder+"/"+doc.name.toString().replace( '.indd', '.pdf' ) );
        doc.exportFile( ExportFormat.pdfType, pdfFile, false, pdfPre, '', false );
        doc.close( SaveOptions.NO );
    exportFolder();
    thx,
    csm_phil

  • Jdeveloper dependency on ANT script for .JAR file for ADF Application

    Hi all,
    We need to create a .jar file for an ADF project consist of Model & viewcontroller. We are able to create jar file with help OjDeploy in my ANT script.
    My query: Ojdeploy uses internally jdeveloper home to complete the task. After going through the generated script, we came to know about below two references:
    1.     oracle.jdeveloper.ant.library = ${jdeveloperHome}\\ jdeveloper\\jdev\\/lib/ant-jdeveloper.jar
    2.     oracle.jdeveloper.ojdeploy.path = ${jdeveloperHome}\\jdeveloper\\jdev\\bin\\ojdeploy.exe
    Is there any way to remove above dependencies so that we can create .jar file without installing Jdeveloper on a machine ?
    regards,
    Mohit

    ojdeploy requires a JDeveloper installation.
    Without going into the debate as to whether this is "good" or not, that's the way it works, I personally don't have a problem with installing JDeveloper on a build box (after all, you do have to install other software on the build box, too).
    If you don't want to install JDeveloper, you can hand-roll your own ANT scripts which is good for racking up the billable hours, but not so good at maintainability.

  • Script for copying files to drop boxes of other Macs

    I don't know much about scripts as yet, but for daily backup purposes
    I would like to copy all new or modified files from various folders
    to the drop boxes of two other Macs (like the old DOS command XCopy)
    and then reset the "modified attributes" (is there something like that at all?)
    of these files.
    A script could do this without the need to always find and select these files
    and to always confirm the messages "You can put items into “Drop Box”,
    but you won’t be able to see them. Do you want to continue?".
    Thanks!

    Here is a short skeleton which doesn't treat subfolders.
    May you check if it do what you want ?
    property sourceFolder : "/Users/home/Documents/Pages/current/"
    property destFolder : "/cr1’s iMac.afpovertcp.tcp.local/cr1's%20Public%20Folder/Drop Box/backup/Documents/Pages/current/"
    on run
    tell application "System Events"
    set dest_folder to path of folder destFolder
    set listeSource to path of disk items of folder sourceFolder
    repeat with sf in listeSource
    if visible of disk item sf then
    tell disk item sf
    set sn to name
    set smd to modification date
    end tell
    if exists disk item sn of folder destFolder then
    set needCopy to modification date of disk item sn of folder destFolder is not smd
    else
    make new file at end of folder destFolder with properties {name:sn}
    set needCopy to true
    end if -- exists disk item
    if needCopy then my copyFile(sf, dest_folder)
    end if -- visible …
    end repeat
    end tell -- System Events
    end run
    on copyFile(sourceFile, targetFolder) (*
    sourceFile is the path to the source file as text,
    dest_folder is the path to the destination folder as text
    newFileName is the name of the file as text
    tell application "Finder"
    duplicate file sourceFile to folder targetFolder with replacing
    end tell
    end copyFile
    Yvan KOENIG (VALLAURIS, France) mercredi 16 décembre 2009 18:33:43

  • Script for XCOPY files to flash drive

    I'm trying to make a batch file to copy all %localuser% folders on an agent's laptop, including a few other directories inside appdata  to a flash drive and have it prompt for the drive letter of that flash drive then prompt to make a directory to copy
    the files/folders to.  The idea is to copy all these directories without having to go in and browse to all these folders every time I want to back up and move an agent's stuff to a new computer.  Would also be great to have the same batch reverse
    the copy on the new computer.  
    Any help would be much appreciated.

    XCOPY is a system utility and not a script. Just follow the help to get it to copy. Post your questions about XCOPY in the platform forum.  You should also search for articles on using XCOPY and ROBOCOPY.  RoboCopy has a simple file that tells
    it what to do.  Search fro posts on RoboCopy.
    ¯\_(ツ)_/¯

  • Script for attaching file

    Hi,
    Is it possible to script a button, which allows the user to attach a file (PDF or Word) to the dynamic form (Acrobat Ver 7 Dynamic)?
    I want a form which is enabled, but will still allow the user to attach the file.
    Once attached subsequent users must be able to click and view the attachment.
    Is this possible?
    Thanks in advance for help.
    Thanks,
    Niall

    Here is the code to load any attachments...you may have to tweak little bit.
    //predefine the file identifying name local to this instance of
    //the form. May have to increment the number to keep it unique and
    //to attach more files. This is not the same name of the file
    //that you selected in the dialog box
    var selectFileName = "File1"
    var doc = event.target;
    doc.importDataObject(selectFileName); //opens the windows dialog box
    var MyPar1 = doc.getDataObject(selectFileName);
    var filename = MyPar1.path;

  • Custom Calculation Script for building in a percentage increase

    Hello all,
       Looking for a custom calculation script that will apply a percentage increase to a default value when the value of another cell goes above certain numbers. Crude example below.
    Y is the cell that the script will be applied to.
    if value of cell X > 10 then value of cell Y = default value * .10 ..... for 10%
    if value of cell X > 20 then value of cell Y = default value * .20...... for 20%
    if value of cell X > 30 then value of cell Y = default value * .30....... for 30%
    Pleaes forgive me. I know my example above is not in true Java form because I really do not know Java that well. Thanks for any help that you all may provide!

    I've inserted the picture above to help. This is a sizing form for pants for a fire department that will be filled out at the department by the firefighter. The manufacturer that makes the pants passes along a 10% upcharge for anyone with a waist 44-50, a 20% upcharge for anyone with a waist 52-54, and a 30% upcharge for anyone with a waist 56-58. The $42.95 in the "Price" cell is the default price for anyone with a waist that does not meet up-charging penalties (Less than a 44 waist). What I am trying to do is if the firefighter plugs in let's say a waist of 50" the "price' cell will update to show an increase of 10%. ($47.24). If he plugs in a waist of 52" the "price" cell will update to show an increase of 20% ($51.54). If he plugs in a waist of 56" the "price" cell will update to show an increase of 30% ($55.83). I hope that makes sense. I know it can be frustrating helping someone that may not know all the ins and outs like a lot of you do so I greatly appreciate your patience and your help!

  • Script for importing files, distributing them to layers, and cutting length?

    Hi, is it possible to import a sequentially numbered set of .psd files and then automatically distribute them to their individual layers and cut them each to a specified length of say 4 seconds, timing them to be visible one after another?
    I'm working with a series of storyboard panels and would just like to lay them out in After Effects' timeline sequentially, so they would be visible one after the other...is there a script or action to automate this?  Thanks

    I'm working with a series of storyboard panels and would just like to lay them out in After Effects' timeline sequentially, so they would be visible one after the other...is there a script or action to automate this?  Thanks
    hi
    try >Animation>keyframe assistant>sequence layers in AE.
    and cut them each to a specified length of say 4 seconds, timing them to be visible one after another?
    this script might help http://www.redefinery.com/ae/view.php?item=rd_CompSetter

  • Spool Script for XML file

    Question : I do not want <ROW num="1"> in xml file I need just <row> </row>. Because I want to change it to <TRANSACTIONS> <TRANSACTION> using Replace.
    Please can any one help me to remove num = "1" and num ="2" from xml file ?
    --MY SPOOL SCRIPT START HERE
    set serverout on
    set feedback off
    spool C:\emp.XML
    Declare
    queryCtx DBMS_XMLquery.ctxType;
    result CLOB;
    procedure printClobOut(result IN OUT NOCOPY CLOB) is
    xmlstr varchar2(32767);
    line varchar2(2000);
    begin
    dbms_output.enable(99999999);
    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;
    begin
    -- set up the query context...!
    queryCtx := DBMS_XMLQuery.newContext('select ename,job,salary from emp');
    -- get the result..!
    result := BMS_XMLQuery.getXML(queryCtx);
    -- Now you can use the result to put it in tables/send as messages..
    printClobOut(result);
    DBMS_XMLQuery.closeContext(queryCtx); -- you must close the query handle..
    end;
    spool off
    --MY SPOOL SCRIPT ENDS HERE
    THE ABOVE WORKS AND CREATES XML FILE AS SHOWN BELOW WHICH IS GOOD
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1">
    <ENAME>JOHN</ENAME>
    <JOB>MANAGER</JOB>
    <SALARY>3000</SALARY>
    </ROW>
    <ROW num="2">
    <ROW num="2">
    <ENAME>KATTU</ENAME>
    <JOB>SALESMAN</JOB>
    <SALARY>1000</SALARY>
    </ROW>
    </ROWSET>

    you requirement.. !!
    11:44:18 zug7_real>SET SERVEROUTPUT ON
    11:44:19 zug7_real>set feedback off
    11:44:19 zug7_real>spool F:\emp.XML
    SP2-0332: Cannot create spool file.
    11:44:19 zug7_real>DECLARE
    11:44:19   2  v_ctx DBMS_XMLGen.ctxHandle;
    11:44:19   3  v_file Utl_File.File_Type;
    11:44:19   4  v_xml CLOB;
    11:44:19   5  v_more BOOLEAN := TRUE;
    11:44:19   6  procedure printClobOut(result IN OUT NOCOPY CLOB) is
    11:44:19   7  xmlstr varchar2(32767);
    11:44:19   8  line varchar2(2000);
    11:44:19   9  begin
    11:44:19  10  dbms_output.enable(99999999);
    11:44:19  11  xmlstr := dbms_lob.SUBSTR(result,32767);
    11:44:19  12  loop
    11:44:19  13  exit when xmlstr is null;
    11:44:19  14  line := substr(xmlstr,1,instr(xmlstr,chr(10))-1);
    11:44:19  15  dbms_output.put_line(' '||line);
    11:44:19  16  xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
    11:44:19  17  end loop;
    11:44:19  18  end;
    11:44:19  19  BEGIN
    11:44:19  20  -- Create XML context.
    11:44:19  21  v_ctx := DBMS_XMLGen.newContext('select n1,n2 from view_1 ');
    11:44:19  22  -- Set parameters to alter default Rowset and Row tag names and de
    fault case.
    11:44:19  23  --DBMS_XMLGen.setRowsetTag(v_ctx, 'TEST');
    11:44:19  24  --DBMS_XMLGen.setRowTag(v_ctx, '');
    11:44:19  25  --DBMS_XMLGen.setTagCase(v_ctx, DBMS_XMLGen.LOWER_CASE);
    11:44:19  26  -- Add an IE specfic XSL stylesheet reference so browser can trans
    form the file.
    11:44:19  27  --DBMS_XMLGen.setStylesheetHeader(v_ctx, 'C:\Development\XML\IESty
    le.xsl', 'text/xsl');
    11:44:19  28  -- Create the XML document.
    11:44:19  29  v_xml := DBMS_XMLGen.GetXML(v_ctx);
    11:44:19  30  DBMS_XMLGen.closeContext(v_ctx);
    11:44:19  31  -- Output XML document to file.
    11:44:19  32  printClobOut(v_xml);
    11:44:19  33  END;
    11:44:19  34  /
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <N1>10</N1>
    <N2>40</N2>
    </ROW>
    <ROW>
    <N1>10</N1>
    <N2>50</N2>
    </ROW>
    <ROW>
    <N1>20</N1>
    <N2>40</N2>
    </ROW>
    <ROW>
    <N1>20</N1>
    <N2>50</N2>
    </ROW>
    </ROWSET>- Pavan Kumar N

Maybe you are looking for