Read XML file and generate a XLS file?

Hi Guys,
How I can generate a XLS file with information in a XML file.
I have a XML which received information from a form.
To the user see the information inside a XML file, I created a report.cfm with the informations of the users.
Now the user want which the information in the XML, generate a XLS file from a CFM file to download.
How I will transformed this information in a XLS file?
Thanks,
Fabiano Magno Pechibella

There is no need to re-invent the wheel. Raymond Camden has published code that converts information from a form to an Excel file. His method first converts information from a form to a query. But you can easily adapt it to your case. If you do not have direct access to the form, you will still be able to convert the XML data into the name-value pairs in the query.

Similar Messages

  • Mixing two mp3 files and generating new mp3 file in java

    HI,
    I have problem, I have 2 mp3 files I have some defined times for both file. On particular time i want to mix both mp3 file sound and generate new mp3 file by mixing audio from both files.
    As i am new to mp3 in java , Please guide me from where should i start or any other good suggestion.
    Thanks & Regards
    Akhnukh

    Thanks a lot for ur reply....
    But my actual task is to mix two mp3 files and generate a new file where in i should be able to list the two mp3 files playing simultaniously......
    So can u please help me in writing the j2me code for mixing of two mp3 files.....
    Thank u very much
    Navya

  • Is it possible to read "rtx" files in JAVA.. and make a "xls" files.. !!

    Hello frnds..
    I dont have any idea.. how to read rtx files.. in JAVA.. ??
    I have some data in rtx files.. which i want to read it.. and save in xls files.. !!
    Please someone help.. am new to java.. searched a lot.. abt that .. but didnt find.. anything.. !!
    gervini

    I'm not being dismissive but I think your question comes down to "is there already a package/library to do this".
    You can use POI/HSSF to generate xls using Java. As for the other end, is rtx a rich text format? Are you able to parse the information in the file by simply reading the file through the regular file reading mechanisms?

  • How to read from one file and write into another file?

    Hi,
    I am trying to read a File and write into another file.This is the code that i am using.But what happens is last line is only getting written..How to resolve this.the code is as follows,
    public String get() {
         FileReader fr;
         try {
              fr = new FileReader(f);
              String str;
              BufferedReader br = new BufferedReader(fr);
              try {
                   while((str= br.readLine())!=null){
                   generate=str;     
              } catch (IOException e1) {
                   e1.printStackTrace();
              } }catch (FileNotFoundException e) {
                   e.printStackTrace();
         return generate;
    where generate is a string declared globally.
    how to go about it?
    Thanks for your reply in advance

    If you want to copy files as fast as possible, without processing them (as the DOS "copy" or the Unix "cp" command), you can try the java.nio.channels package.
    import java.nio.*;
    import java.nio.channels.*;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    class Kopy {
         * @param args [0] = source filename
         *        args [1] = destination filename
        public static void main(String[] args) throws Exception {
            if (args.length != 2) {
                System.err.println ("Syntax: java -cp . Kopy source destination");
                System.exit(1);
            File in = new File(args[0]);
            long fileLength = in.length();
            long t = System.currentTimeMillis();
            FileInputStream fis = new FileInputStream (in);
            FileOutputStream fos = new FileOutputStream (args[1]);
            FileChannel fci = fis.getChannel();
            FileChannel fco = fos.getChannel();
            fco.transferFrom(fci, 0, fileLength);
            fis.close();
            fos.close();
            t = System.currentTimeMillis() - t;
            NumberFormat nf = new DecimalFormat("#,##0.00");
            System.out.print (nf.format(fileLength/1024.0) + "kB copied");
            if (t > 0) {
                System.out.println (" in " + t + "ms: " + nf.format(fileLength / 1.024 / t) + " kB/s");
    }

  • I have just downloaded the latest "Office" update, and now my xls files only open in "Numbers". Can this be fixed?

    I have just downloaded the latest "Office" update, and now my xls files only open in "Numbers". Can this be fixed?

    You can try right clicking on one of your xls files select get info then select open with, select other then choose office excel and check the box to say always open this file type.
    Hope this helps

  • Does LabView program behave differentl​y under Traditiona​l Chinese version from regular English version. The program reads in numbers and characters from input files.

    Does LabView program behave differently under Traditional Chinese version from regular English version. The program reads in numbers and characters from input files.

    Hope this helps,
    Ankita

  • EDI  X12 scenario,deq.bat file not generating any trace file.

    hello,
    i have worked on the EDI X12 over internet(AS2) Transaction,everything is working fine until the creation and deployment of configurations on both Acme and GlobalChips servers.But During the Verification of Purchase Order Transactions when i am running deq.bat file on both Acme and GlobalChips servers the dq script is not generating any t1.trc trace file.
    There is no problem with the Trading Partners on both servers they are on upstate,can anyone help me with this issue please,its very urgent.
    note: where will be the web.xml file for transportServlet located,can anyone provide me with the file path.
    thnx
    sunny

    Hello Sinkar,
    Thanks for your reply,Finally i have managed resolve the issue(deq.bat file is generating t1.trc file) successfully.But there are certain other issues regarding this topic in which i need your help.
    When i am running the deq.bat file in command prompt on both acme and globalchips servers it is showing the following status
    D:\oracle\OraJ2EE\ip\tutorial\X12\runtime>deq.bat
    D:\oracle\OraJ2EE\ip\tutorial\X12\runtime>java oracle.tip.adapter.b2b.data.IPDeq
    ueue ipdequeue.properties
    IPDequeue start...
    Dequeue from IP_IN_QUEUE
    and it also generated a t1.trc file on both servers,but the prompt in which i have run deq.bat is not giving any further message
    i.e some thing like IPDequeue end.
    and not even coming back to the original path i.e
    D:\oracle\OraJ2EE\ip\tutorial\X12\runtime>
    and even if close the prompt it is not showing anything in t1.trc file and if i am running the enq_850.bat in acme server it is showing following stat
    D:\oracle\OraJ2EE\ip\tutorial\X12\runtime>enq_850.bat
    D:\oracle\OraJ2EE\ip\tutorial\X12\runtime>java oracle.tip.adapter.b2b.data.IPEnq
    ueue enq_850.properties
    IPEnqueue start...
    IPEnqueue end.
    D:\oracle\OraJ2EE\ip\tutorial\X12\runtime>
    and its didn't showing anything in the t1.trc file generated on the globalchips server and same thing is happening when i am running enq_855.bat file on the globalchips server its not showing up anything in the trace file generated on the acme server.
    I have tried one thing that u have suggested for such kind of issue(t1.trc empty) in your forums
    1.) I have applied the patch #6673231 and it is showing the Document Routing Id Field in the B2B UI,but when i am completing all the process in B2B UI and running deq.bat file the result is still the same,the IPDequeue is not ending
    But a certain change has taken place after applying the pat
    D:\oracle\OraJ2EE\ip\tutorial\X12\runtime>java oracle.tip.adapter.b2b.data.IPEnq+
    ueue enq_850.properties+
    IPEnqueue start...+
    Action Name = null
    IPEnqueue end.+
    D:\oracle\OraJ2EE\ip\tutorial\X12\runtime>+
    C:\oracle\OraJ2EE\ip\tutorial\X12\runtime>enq_855.bat+
    C:\oracle\OraJ2EE\ip\tutorial\X12\runtime>java oracle.tip.adapter.b2b.data.IPEnq+
    ueue enq_855.properties+
    IPEnqueue start...+
    Action Name = null
    IPEnqueue end.+
    C:\oracle\OraJ2EE\ip\tutorial\X12\runtime>+
    I Think that no action is taking place in both the cases
    bcoz its showing this Action Name = null+
    if that is the case what is the problem here
    I have also set oracle.tip.adapter.b2b.DocumentRouting=true.
    but the situation is still the same,please read the above problem carefully and suggest a solution which would be fruitful for my further progress.
    thanks
    sunny
    Edited by: user10470973 on Dec 16, 2008 10:43 AM
    Edited by: user10470973 on Dec 16, 2008 10:44 AM

  • How can I get a preloader to launch a main (external) swf file, and have the main file remove the preloader once it's fully loaded?

    Using Flash MX, ActionScript 2:
    I’ve been struggling for several weeks, trying to get a preloader to work on a large (~80 MB) photo portfolio file (using the method where the preloader is on frame 1 of the file, and when loading is completed, it jumps to the content).  I’ve done countless tutorials, and none seem to work on my presentation.  I even tried downloading a trial version of CS4 so I could export every one of the file’s library movie clips and images so that they load on Frame 2 (a feature MX doesn’t have).  It takes about 20 seconds for the .exe to load from a CD, and no matter which preloader construction I use, it always seems to appear in the last few seconds before the movie loads completely.  During the initial wait time, there’s no indication that anything is happening:  no hourglass on the mouse, and not even a blank screen. This is only true for the first time that the file is loaded from the CD; on subsequent loads, the file must already be in RAM, because it loads within a few seconds. 
    I decided that I’m going to try and make the file which the user clicks on (one named Windows_Portfolio.exe or another called Mac_Portfolio.hqx) the preloader so that it would be tiny, and would load instantly.  I want that file to launch the external huge portfolio file (renamed files.swf), keep track of its loading progress, and cycle through a slideshow (10 thumbnail images that transition into each other over 100 frames) proportionally, based upon the percentage of files.swf that had been loaded.
    I assume that there should be a loadMovie() or a loadMovieNum() command on the preloader’s timeline to launch files.swf, and that the initial code of files.swf should have some sort of this._parent._visible=false or other way of deleting the preloader on level0.  Can anyone explain the steps to me, or direct me to a good Flash MX tutorial that explains how to launch another external swf from a preloader .exe, keep track of its load progress, and delete the preloader .exe once the external swf had been loaded?
    Also, I’ve read that, using this construction on a CD, every file has to be in the same place, and that I can’t nest files.swf in a folder named “files,” and reference it with files/files.swf.  Is this true?
    Thanks for any assistance you can offer.

    If you know JavaScript (ECMA Script) then you might be able to get it done applying a for loop and a random function
    to the for loop if you know how to get a page-loaded request into JavaScript.
    But an easier solution, if you know ActionScript 3.0, and if your SWF's don't need to be recoded and can load into a "container" SWF would be to create a master FLA file that loads your SWF's in a random fashion using Math.random() as a multiplier, though you won't see much variation if you only have 2-3 SWF's to load--if you had more than that then you would begin to benefit from the random function's capabilities.  In ActionScript 3.0 use the load() method along with addChild() to load the SWF and add it to the stage.  You will be able to search for specifics on how to code the FLA properly by using Flash's Adobe Help tool and also using an internet search.
    -markerline
    P.S. Once you have the master FLA coded you can Publish it to an SWF and an HTML and if the container/master SWF needs to be in a page with other content you can simply copy and paste the object and embed tags for the container SWF from the published HTML into any place on your master HTML that you need it to reside.  You can then use CSS to control placement of the SWF object if it is in a div tag.

  • I am a Windows Vista User. I updated my iTunes Version 10.3. Then, when I re-opened my iTunes, all files were gone! Good thing I consolidated the files and just imported the files again. But, this happens every time I close and open my iTunes. Help?

    I am a Windows Vista User. I updated my iTunes Version 10.3. Then, when I re-opened my iTunes, all files were gone! Good thing I consolidated the files and just imported the files again. But, this happens every time I close and open my iTunes. Help?

    In iTunes 11 uncheck the preferences setting in in the iTunes Preferences panel "Advanced > Copy Files to iTunes Media folder when adding to Library"

  • Search multiple folders and muiltiple files and combine to single file

     I want to search multiple folders for muliple files and combine to single file name. The files I'm searching have same format, but where named
    differently in each of there processes. Now I want to combine based upon -SearchFor .. I'm having a problem with -Filter $SearchFor
    Code:
    Function Search-Files{
    Param([String[]]$Locations,[String[]]$SearchFor, $AppendTo)
    Begin
    If(-Not (Test-Path $AppendTo)){New-Item $AppendTo -ItemType File -Force}
    Process
    ForEach($Location in $Locations)
    $Files = Get-ChildItem -Path $Location -Filter $SearchFor -Recurse
    ForEach($File in $Files)
    Get-Content -Path $FIles.FullName | Out-File $AppendTo -Append
    End{}
    Search-Files -Locations "\\servera\public\t1\usa\saleshist\","\\serverb\public\t2\usa\saleshist\",-SearchFor "dodetail-cm.txt","somstr.txt",-AppendTo "\\virt1\Saleshist_data_load_files\saleshdr.load.csv"

    I think you might want to use -Include instead of -Filter.  Your -Include parameter accepts wildcards, i.e. *.docx or *somstr.txt
    Your command to actually append the content should be:
    Get-Content -Path $File.FullName | Out-File $AppendTo -Append
    You had $Files.FullName which might behave unexpectedly, if at all.
    Your actual command has several issues.
    Search-Files -Locations "\\servera\public\t1\usa\saleshist\","\\serverb\public\t2\usa\saleshist\" -SearchFor "dodetail-cm.txt","somstr.txt" -AppendTo "\\virt1\Saleshist_data_load_files\saleshdr.load.csv"
    You had commas following the lists of locations and searchfor terms, did that even work? Without seeing your source files or your target file I can only advise you so much, but ideally you would import-csv and export-csv.  Depending on the contents,
    you may be able to get away with get-content and out-file though.
    I hope this post has helped!

  • How do I scan a photo to a file and then send the file as an attachment via email.

    How do I scan a photo to a file and then send the file as an attachment  via email.

    All of this depends largely on what printer /software you have, which Email client you use and to some extent which OS you are running.
    Most HP printers have HP Solution Center which is used to set up scanning,choosing where to save,etc. Once a file/photo is scanned and saved to the folder, open the folder.Select the file and at the top of the window should be the option to 'Email'.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Difference(s) in usage of a ".json" bookmark backup file and a ".html" bookmark file

    Hello to all,
    What is the difference between usage of a ".json" bookmark backup file and a ".html" bookmark file? It seems both of them are doing the same job. If it is the case, then why there are two options (.json and .html) for doing the same job? If not, then what is the reason behind availability of the two options and how do they differ? Although I've read all the related documentaion, it's not quite clear form me yet. Please be kind enough to elaborate on the question so that I can get a clear understanding of their right usage(s).
    Thank you very much in advance for your time and expertise

    Hello,
    See [https://support.mozilla.org/questions/684284#answer-18836 questions/684284]

  • HT2305 I downloaded, and have two .msi files and one setupadmin.exe file. I click the latter and nothing happens?

    I downloaded 2 updates (download only), and there's two  .msi files and one setupadmin.exe file. I click the latter and nothing happens? How am I meant to do install these updates?

    Sorry I forgot to mention I was doing this on a PC with Vista (the heading was Windows so I didn't bother to mention this). Anyway by trial and error I found that you can click on the .msi files to install them. The files were downlads of updates to iTunes and iCloud Control Panel.

  • HT1449 Can I just move my movie files and leave my music files where they are?

    Can I just move my movie files and leave my music files where they are?

    Yes, but bear in mind if you move the movie files, any files, from the iTunes media folder iTunes will not know where they are and therefore cannot access them. It will be up to you to tell iTunes were they are in order to use the files.

  • I write both JPG and DNG files in the camera.   Camera is a Leica Monochrom.   Photo, unlike iPhoto, seems to ignore DNG files and only imports JPG files.   What am I missing here?

    I write both JPG and DNG files in the camera.   Camera is a Leica Monochrom.   Photo, unlike iPhoto, seems to ignore DNG files and only imports JPG files when both are present on the SD card.  JPGs are used for quick proofing on an iPad.    DNG RAW files are edited on a Mac Pro (2013).    Other than deleting the JPGs before importing images from the SD card,  is there any way to force Photo to select and import only the DNG images?

    Thanks Larry,
    I did see the J stacked in the lower left of the thumbnails but couldn't figure out how to get to whatever is below it.   How do you select R?  
    I use an iPad to do quick proofs of my images.   A JPG is good enough for a proof ( dust on the lens,  composition, blown out image, etc. ).   The iPad is JPG friendly and can load the images quickly.    Serious editing takes place on my Mac Pro with the DNG files.   I use the same workflow with the the Leica M 240.   iPhoto has been a quick and easy importer to the Mac capturing all of the metadata in the EXIF sidecar file ( location, date, time,  camera settings, lens type).  A quick scan in iPhoto for the "keepers" let's me export those worth editing to Lightroom/Bridge/Photoshop.  I typically shoot 50 images from three locations in a normal day.  If I'm lucky I'll get 1 worth real work to add to the portfolio.  

Maybe you are looking for

  • My double click isn't working for itunes to choose songs ? how can i get it working ?

    ever since i got my macbook pro my double clicking hasnt been working on itunes to choose songs, so in stead i have to use arrow keys. how do i get my double click working again ?

  • Error when deleting applet from card

    I have a JCOP 41 card, where I am working with. I use the JCOP plugin (3.1.0.5) within Eclipse (SDK 3.0.1). I've uploading some applets to my card, but there resides 1 applet on my card that I can't remove anymore, the other can be removed correctly.

  • Printing to Adobe PDF directly without going to PostScript

    I would like to know if there is a way to use programmatically the Adobe PDF printer and the resulting file is .pdf not .ps? or make a pdf document silently from postscript?

  • Rwbuilder.exe VGS.dll Crash

    I am running report builder on a 2008 Server r2 with 11g configured with weblogic and reports and forms for a developer machine. When ever I double click on the data model I get an application crash and it usually states the VGS.dll as the faulting a

  • When will Apple provide iPhone to all?

    When will Apple realize that the iPhone is the only phone for many people and therefore will increase sales to the max by providing iPhone to all customers via all service providers?