I have an excel file,i want to read and write this file to xml

hello,
i have an excel file,i want to read excel data and write to xml file .i also have an exisitng xml file and i want to appened the excel data to the exisiting xml.please give some example code.
thanks

GoOgLe

Similar Messages

  • How do I migrate files created in a Windows OS to a new external drive that is formatted as a MAC drive. I want to read and write these files back to the new drive.

    How do I migrate files from an external hard drive created in a Windows OS to a new MAC external drive? I want to read and write these files to the new drive.

    LKrzesowski wrote:
    How do I migrate files from an external hard drive created in a Windows OS to a new MAC external drive? I want to read and write these files to the new drive.
    If all you're trying to do is move the files from the Windows external to the Mac external, you can simply connect them both to the Mac and drag the files from the Windows drive to the Mac drive. If you want to move the files back and forth between them, you'll need to establish the format of the Windows external. Macs can read and write to FAT32 and exFAT (which can handle files larger than 4GB) formatted drives but can only read NTFS formatted drives without additional software. With the Windows drive connected, you can check its format with Disk Utility.

  • File importer detected an inconsistency in the file stucture of (file name). Reading and writing this file's metadata (XMP) has been disabled.

    I have duplicated a project to work on another computer. The project opens fine but when I import new footage/audio files I get this message. "File importer detected an inconsistency in the file stucture of (file name). Reading and writing this file's metadata (XMP) has been disabled." Then I can't play my timeline and Premier Pro crashes.  I have to force quit and restart my computer to continue working. What does this error really mean? How do you rectify?
    Our workflow requires that we duplicate projects to make updates because we are frequently revising but need to keep original project unchanged and intact.

    I have a similar issue and message , but occurs when I import AVI clips from OnLocation CS4 to Premier Pro CS4.

  • I'm trying to share folder between users on a single mac.  I put the folder in "shared," set permissions so other user can read and write, enabled file sharing, but can't find the folder on the second user's account.  Any help?

    I'm trying to share a folder between users on a single mac.  I want both users to be able to read and write so the folder stays current on both accounts.  I put the folder in "shared," set permissions on folder so other user can read and write, enabled file sharing, but can't find the folder on the second user's account.  Any help?

    Did you log out of one account and into the other or just used Fast user switching?
    Is the permissions set to anyone?
    When you move data to teh Shared folder is it copied or just moved?
    If copied then it's not a folder both can access, just a way station like a USB thumb drive that things are coped too and off of likely.
    You can run this #5 on each user account to reset the user permissions once they are taken back out of the Shared folder
    Step by Step to fix your Mac

  • File Read and Write using File Adapter in Bpel

    In Bpel Process i am using File Adapter ( Schema is Opaque) for read and write the file contents. i am able do successful deployment and read, write function in first time deployment, after that again i tired to run the application, its not going to write the content of file, its only writing the file with out data's or content in that file.
    Please help me...
    Saravanan

    Hi Eric
    In my domain.log file having the following details. In this file im unable to find out what the exact problem. Please look at this and help me.
    <2008-01-22 18:25:42,024> <INFO> <default.collaxa.cube.compiler> validating "C:\product\10.1.3.1\OracleAS_1\bpel\domains\default\tmp\.bpel_BPELProcess2_1.1_298e83988d77b6640c33dfeec11ed31b.tmp\BPELProcess2.bpel" ...
    <2008-01-22 18:25:49,850> <INFO> <default.collaxa.cube.engine.deployment> <CubeProcessFactory::generateProcessClass>
    Process "BPELProcess2" (revision "1.1") successfully compiled.
    <2008-01-22 18:25:49,914> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Loading JCAActivationAgent for {portType=Read_ptt}
    <2008-01-22 18:25:49,914> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::load - Locating Adapter Framework instance: OraBPEL
    <2008-01-22 18:25:49,930> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::load - Done loading JCAActivationAgent for processId='bpel://localhost/default/BPELProcess2~1.1/
    <2008-01-22 18:25:49,930> <INFO> <default.collaxa.cube.engine.deployment> Process "BPELProcess2" (revision "1.1") successfully loaded.
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::uninit Shutting down the JCA activation agent, processId='bpel://localhost/default/BPELProcess2~1.0/', activation properties={portType=Read_ptt}
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - performing endpointDeactivation for portType=Read_ptt, operation=Read
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Endpoint De-activation called in adapter for endpoint : D:\MAXIMUS_Project_Softwares\jdevstudiobase10132\jdev\mywork\MyLabs\BPELProcess2\in
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::init - Initializing the JCA activation agent, processId='bpel://localhost/default/BPELProcess2~1.1/
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::initiateInboundJcaEndpoint - Creating and initializing inbound JCA endpoint for:
    process='bpel://localhost/default/BPELProcess2~1.1/'
    domain='default'
    WSDL location='rd.wsdl'
    portType='Read_ptt'
    operation='Read'
    activation properties={portType=Read_ptt}
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - endpointActivation for portType=Read_ptt, operation=Read
    <2008-01-22 18:26:02,730> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Endpoint Activation called in File Adapter for endpoint: D:\MAXIMUS_Project_Softwares\jdevstudiobase10132\jdev\mywork\MyLabs\BPELProcess2\in
    <2008-01-22 18:26:02,730> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - successfully completed endpointActivation for portType=Read_ptt, operation=Read
    <2008-01-22 18:26:02,890> <WARN> <default.collaxa.cube.activation> <File Adapter::Inbound> PollWork::run exiting, Worker thread will die
    <2008-01-22 18:26:04,171> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Managed Connection Created
    <2008-01-22 18:26:04,171> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Connection Created
    <2008-01-22 18:26:04,171> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> FileInteraction Created

  • How to read and write(a file .txt) from a URLConnection

    I try to read and write on one URLConnection. Is it possible ? How can i make it ?
    The reading part of my application work's but not the writting part
    That's a part of rhe code that i use to write :
    String Line = "Hi";
    MyUrl = new URL(this.getCodeBase(), FichierEvenement) ;
    Con = MyUrl.openConnection() ;
    Con.setDoOutput(true);
    Con.setDoInput(true);
    Con.setUseCaches(false);
    Dos = new DataOutputStream(new BufferedOutputStream(Con.getOutputStream( )));
    Dos.writeUTF(Line);
    Please help me :)

    What are you doing with the bytes written to the OutputStream? This info would help, but i do have a suggestion. I ran into this problem when trying to write strings using writeUTF. The output was all screwed up. So, maybe change your string to a character array. That way Unicode is displayed properly. This in conjunction with writing to an .html file instead of to the connection itself might work.

  • Create OutputFile in jsp and write this file to response

    Hello
    Please can you help me
    I need to dynamically create a file in jsp and send this file to user
    Please help

    Don't forget to set the contentLength. Some clients/applications will refuse to run/open the file otherwise.
    At the bottom of this article you can find several reuseable downloadFile() utility methods: http://balusc.xs4all.nl/srv/dev-jep-pdf.html
    I'll copypaste them here:
    package net.balusc.util;
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.net.URLConnection;
    import javax.servlet.http.HttpServletResponse;
    public class HttpServletUtil {
         * Send the given file as a byte array to the servlet response. If attachment
         * is set to true, then show a "Save as" dialogue, else show the file inline
         * in the browser or let the operating system open it in the right application.
         * @param response The HttpServletResponse to be used.
         * @param bytes The file contents in a byte array.
         * @param fileName The file name.
         * @param attachment Download as attachment?
        public static void downloadFile(HttpServletResponse response, byte[] bytes, String fileName, boolean attachment) throws IOException {
            // Wrap the byte array in a ByteArrayInputStream and pass it through another method.
            downloadFile(response, new ByteArrayInputStream(bytes), fileName, attachment);
         * Send the given file as a File object to the servlet response. If attachment
         * is set to true, then show a "Save as" dialogue, else show the file inline
         * in the browser or let the operating system open it in the right application.
         * @param response The HttpServletResponse to be used.
         * @param file The file as a File object.
         * @param attachment Download as attachment?
        public static void downloadFile(HttpServletResponse response, File file, boolean attachment) throws IOException {
            // Prepare stream.
            BufferedInputStream input = null;
            try {
                // Wrap the file in a BufferedInputStream and pass it through another method.
                input = new BufferedInputStream(new FileInputStream(file));
                downloadFile(response, input, file.getName(), attachment);
            } catch (IOException e) {
                throw e;
            } finally {
                // Gently close stream.
                if (input != null) {
                    try {
                        input.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                        // This is a serious error. Do more than just printing a trace.
         * Send the given file as an InputStream to the servlet response. If attachment
         * is set to true, then show a "Save as" dialogue, else show the file inline
         * in the browser or let the operating system open it in the right application.
         * @param response The HttpServletResponse to be used.
         * @param input The file contents in an InputStream.
         * @param fileName The file name.
         * @param attachment Download as attachment?
        public static void downloadFile(HttpServletResponse response, InputStream input, String fileName, boolean attachment) throws IOException {
            // Prepare stream.
            BufferedOutputStream output = null;
            try {
                // Prepare.
                int contentLength = input.available();
                String contentType = URLConnection.guessContentTypeFromName(fileName);
                String disposition = attachment ? "attachment" : "inline";
                // Init servlet response.
                response.setContentLength(contentLength);
                response.setContentType(contentType);
                response.setHeader("Content-disposition", disposition + "; filename=\"" + fileName + "\"");
                output = new BufferedOutputStream(response.getOutputStream());
                // Write file contents to response.
                while (contentLength-- > 0) {
                    output.write(input.read());
                // Finalize task.
                output.flush();
            } catch (IOException e) {
                throw e;
            } finally {
                // Gently close stream.
                if (output != null) {
                    try {
                        output.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                        // This is a serious error. Do more than just printing a trace.
    }

  • How to read and write to file on server

    can any body tell how to read or write to a file on server, like where do i keep the file and what does the path look like......on server
    stand alone i am reading and writing into file but when it comes to server i am confused how it works...i mean the path
    thank you

    The Path needs to be absolute:
    For example in Unix it would look like:
    /usr/paz/Test.txtIn Windows it would look like:
    C:/Paz/Test.txtHope this helps.
    Thanks and regards,
    Pazhanikanthan. P

  • How to read and write Binary files from Forms 6i C/S ?

    Hi There,
    I have a situation, where user wants to store attachements to a record (Could be any type of file, TXT, TIFF, or Word Doc etc.) and wanted to retreive later if they wanted to edit/read.
    We are using forms 6i and Oracle 9i in client/server environment setup. Does anybody know how to solve this requirment. I'm ale to load image files with read_image_file, but it could be text some times and it could be some thing elses like word doc or excel.
    Also i have to give user an option to view existing file attachments. I'm Planing to use BLOB in database table to store files.
    Any help in this regards is appreciated

    Thanks,
    Venkat

  • How to read and write PDF files

    I need to read pdf file and get information about its pagenumbers and format and permission allowed ...........
    then i want to ghange some of this attribute ....................
    how can do this ....................and what's API i have to use.......................

    http://www.pdfbox.org/
    regards

  • Read and Write Binary File

    Hi...
    I have a problem. In C programming, if we want to read a file, we can determine to read it as text or binary. There is difference between them. But we still can read it in ASCII mode.
    My problem is :
    How to do that in Java ? I want to read any file in binary and I hope can read it in ASCII(8 bit) mode.
    I need it...
    Thanks for your help

    Hi,
    Check this link
    http://saeta.physics.hmc.edu/courses/p170/code/files.html#Java
    Gives you an example where you can see how to open a files for input or output in Binary or text mode.
    Hope this helps.
    Regards,
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • How to read and write a file in unicode?

    Hello!
    I have a problem with reading and writing files which are saved in unicode. with my current code I get strange boxes in my text
    Do you need a special Reader/Writer for this?
    Please, help me if you have any ideas.
    cheers
    import java.io.*;
    import java.util.*;
    public class StreamConverter {
       static void writeOutput(String str) {
           try {
               FileOutputStream fos = new FileOutputStream("test_uni.txt");
               Writer out = new OutputStreamWriter(fos, "UTF8");
               out.write(str);
               out.close();
           } catch (IOException e) {
               e.printStackTrace();
       static String readInput() {
          StringBuffer buffer = new StringBuffer();
          try {
              FileInputStream fis = new FileInputStream("file_uni.txt");
              InputStreamReader isr = new InputStreamReader(fis, "UTF8");
              Reader in = new BufferedReader(isr);
              int ch;
              while ((ch = in.read()) > -1) {
                 buffer.append((char)ch);
              in.close();
              return buffer.toString();
          } catch (IOException e) {
              e.printStackTrace();
              return null;
       public static void main(String[] args) {
            String inputString = readInput();
            writeOutput(inputString);     
    }

    Are you saying there's only the three boxes at the beginning, and the rest of the text is okay? That sounds like a Byte Order Mark (BOM). The BOM is optional for UTF-8, but Java's I/O classes act like it's forbidden. They should check for it when reading so they can skip over it, but (for now, at least) we have to do that ourselves.
    All you have to do is read the first three bytes from the InputStream and compare them to the BOM. If they match, you start reading the text from that position; otherwise you reset the InputStream and start reading from the beginning.
    http://en.wikipedia.org/wiki/Byte_Order_Mark

  • Java Applet: choose, read and write local file

    Can some body please help in writing a Java Applet with the following features:
    1. FileChooser button to select a local text file
    2. Load button
    3. Read the file line by line, process it and write into a text file.

    AnilK wrote: Thank you very much.
    Those are just empty words. You can show your thanks in ways that are more useful both to me and you.
    To better show your thanks you might..
    1) Stop treating me as though I were your servant. In a conversation, you might ask a question that I try to answer. As part of my answer, I might need to ask you some questions. A question is a sentence followed by '?'. I did ask you some questions. There are four questions I asked in my first reply. Please answer my questions so I can provide you the best advice.
    2) Do not ignore things I say. (see below*)
    AnilK wrote: However, I still have a problem where the applet can not write a local text file.
    * That is probably because you ignored what I mentioned about digitally signing the applet. If you do not understand anything I write, please do a search and if that does not help you to understand it, ask me what I mean.
    AnilK wrote: Can some body please help me out.
    I was happy to help, but my enthusiasm is dropping quickly. Unless you can manage to improve your replies, I will not help further.
    I will supply some more tips before I finish this message and wait to see your reply, to decide whether I will help further.
    1) If you use 'code' delimiters, the Java code will be colored nicely for people to read. Here is an example (e.g.).
    } catch (Exception e) {
    ret = "problem found. Please reload.";
    return ret;
    2) I had a point here about indenting code, but when I went to reply, the code was indented, which makes me think that using code delimiters would also fix the problem where the code looks as if it has no indentation.
    3) It is 'best practice' (unless you are an expert and can justify otherwise) to dump every stacktrace to find out what really happened. e.g.
      } catch (Exception e) {
        // Very important!  Find out why it failed!
        e.printStackTrace();
        // now go on to do the other things..
        ret = "problem found. Please reload.";
      return ret;
    } 4) When you get a stacktrace, copy/paste at least the first few lines into the message. If my guess about the cause of the problem is correct, the word 'security' will appear somewhere in the stacktrace.
    5) To encourage people to help, post compilable examples, rather than code snippets.
    <http://homepage1.nifty.com/algafield/sscce.html>
    By the way - congratulations on getting as far as you have. You have surprised me that you got so far already. Improve on the other things I mentioned, and I would be happy to help further.

  • Some files I can't read and write to my socket!?

    I have the following code that writes files to my socket:
    OutputStream out = new BufferedOutputStream(socket.getOutputStream());
    File f = new File(SOME_PATH);
    InputStream fin = new FileInputStream(f);
    int n;
    while((n = fin.read()) > 0) {
      out.write(n);
    out.flush();
    fin.close();And the following reads this file from the socket, and writes it to another file on the server:
    InputStream in = new BufferedInputStream(socket.getInputStream());
    File f = new File(SOME_PATH);
    OutputStream vos = new FileOutputStream(f);
    int n;
    for(int i=0;i<fileSize;i++) {
      n = in.read();
      vos.write(n);
    vos.close();
    vos = null;"fileSize" is always the size of the file, I'm pretty sure here.
    I can transfer both binary and text files, but not all text files. Why is that? How do I fix it?

    Another way is to have an object that represents the file...and then it can contain the filename and other stuff...
    public class MyFile
       private String filename = "";
       private byte[] filecontents = null;
    }If you then use an ObjectOutput/InputStream then you can read the file in wholesale...
    However if you are having "other" commands that you read from the stream then it wouldn't solve that problem!
    Another way is to use the ISDN method, more complex but effective, that is to have a control channel and a data channel...i.e. one stream for sending commands, another for sending data in response to commands...one issue there though is that of synchronization...
    Another potential method is to use XML to provide a "data envelope" that encapsulates the file...
    i.e.
    <file filename="[name]">
    <![CDATA[
       <!-- File contents go here, could be binary/plain text -->
    ]]>
    </file>Of course using XML in this way has it's own problems...
    Overall if you already have a working system in place then I'd stick with that, but those are some ideas!!!

  • Read and Write Text Files

    How do I add text from an input text box from flash to a text
    (.doc) file when you press an OK button. I want to make the button
    have an:
    on (release) {
    //script
    Lets say the URL is "/scene_detail.doc". I can also use .txt
    files, but I'd much prefer someone to tell me how to do this with
    DOC files. Thanks in Advanced!

    Flash cannot write files. You must have some sort of
    serverside script do
    this, something like ColdFusion, php, asp, perl or cgi.
    There is a sample here that writes to an XML file with php:
    http://www.kirupa.com/web/xml_guestbook.htm
    Here is one that writes to a text file with perl:
    http://www.flash-db.com/PerlTut/
    Another sample:
    http://actionscript.org/forums/showpost.php3?p=421960&postcount=70
    Dan Mode
    ->Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "DjSickNick" <[email protected]> wrote in
    message
    news:eaou83$a31$[email protected]..
    > How do I add text from an input text box from flash to a
    text (.doc) file
    > when
    > you press an OK button. I want to make the button have
    an:
    > on (release) {
    > //script
    > }
    > Lets say the URL is "/scene_detail.doc". I can also use
    .txt files, but
    > I'd
    > much prefer someone to tell me how to do this with DOC
    files. Thanks in
    > Advanced!
    >

Maybe you are looking for

  • Use Powershell to read contents on email message pipe to variable

    Hey guys,        Got a new one for ya'll. I've been tasked with writing a powershell app that will watch an Exchange inbox and if the body of the email contains MSDS=xxxxxxxx.pdf email the xxxxxxx.pdf file to a external customer. The email portion i

  • Quality problems, help

    I've been banging my head against the wall for several weeks now.  Expensive camera for me, Sony HDR-cx500v.  I'm new to digital video, but not new to PC's. It looks as if I dont have enough computer to process AVCHD: Win XP SP3 media center, HP AMD

  • Variance analysis with InfoSource 2LIS_04_ARBPL - Target fields empty

    Hi Experts, I want to run a variance analysis for production orders in BW. The Confirmed activites (ISM01-3) are filled in the DataSource 2LIS_04_ARBPL , but all the fields "Target qty/act.typ (ZMNG1-3)" are empty. Do anyone know, how to these fields

  • Changing DB name

    Hello, I'm learning about changing the database name. I've read the thread change of DB_NAME using DBNEWID utility did not work Following these posts I changed dbname, but not instance name. I want to ask, what is the sense of changing dbname, not ch

  • PI7.11 AAE configuration

    I have Interfaces that use both Classical (pinpline steps in ABAP stack) and local processing (bypassing ABAP stack and thus pipeline steps in AAE). This is an example scenario for the Local processing I like to do: ECC<--(soap)PI-- >JDBC client. I'v