Convert gzip files into XML format

We have a requirement where we receive gzip files. These files are zipped file containing base64 binary format csv files. We would have to convert these files into XML format. Please let me know any of the following.
1. Is there any Xpath query or XSL function (somthing similar like doTranslateFromNative() ) to convert from gzip files to XML format.
2. If we need to unzip the zipfile outside fusion, then java code piece to unzip the gzip file. I guess after that we can use the usual doTranslateFromNative() function to translate to XML format, since after unzipping the gzip file, they are base64 binary formats.
Thanks in advance,
Toms

There is an option to do pre-processing and post processing of Files when using File adapter. You need to create a valve which will first do pre processing and send the output to FileAdapter.
You can get more information here:
http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#CACDHGGG
under section: 4.2.14 Pre-Processing and Post-Processing of Files
Essentially you will use Java to unzip the file first and then the unzipped content will be passed to the adapter.

Similar Messages

  • How to convert .stl file into .xml file. Subtitles to IMPORT INTO FCPro

    I have a subtitles file which was created in dvd studio pro. I exported that file and made a .stl file (which can be opened with TextEdit).
    I need to import that file into FCP to then make a quicktime file w/subs to be exported.
    I'm trying to use TitleExchange which tells you you CAN convert .stl files into .xml (FCPro type of file) but when I try to import the .stl subtitle file into TitleExchange to be converted to .xml I get the following error:
    Can't make "" into type boolean. (-1700)
    Can someone help?
    Thanks!!!
    Paula

    Can anyone help me?
    I absolutely need to import the subtitles into Final Cut and re-writing all of them manually would take forever.
    Please let me know if there is any program I need to use.
    Thanks for all tips
    Paula

  • How to convert Xls file into Xml file

    Hi,
    I am trying to convert Xls file into Xml  but there  is no any direct procedure for it
    Pls help me out to convert Xls file into Xml file
    Thanks
    Anushree

    you will require to write a module in your file adapter for the same.
    ref: /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter as mentioned in the earlier post.
    Else you can also use Conversion Agent to read the same.
    Ref: http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/content.htm

  • How can convert HTML file into xml file?

    Hi,
    I am receving one HTML file as an input and i want to convert that receiving(html file) into .xml file.Is there any converter (tools)to do this.Pls if any give me the details with regard.
    Regards,
    mahesh.

    Use the HTMLEditorKit to parse the html file.
    this kit is having the callback methods which
    are called wenever the tag appears in the HTML
    stream.

  • How to convert text file into xml file format with and check that with DTD

    I have an text file with | seperator . I have to convert this to an xml file and check with DTD present with me..
    plz help me out

    can i get some code that how to compare the xml with dtd or just give the DTD name with an XML

  • Convert .txt file into .xml file

    Hello,
    How do i convert an .txt file into an .xml file using labVIEW function?.
    Also i do i extract the header from the text file.
    My file format is mentioned in attached .txt file.
    Also I need to extract the header from the converted .xml file.
    Anticipating reply
    Attachments:
    Example.txt ‏1 KB

    There is no automatic mechanism for converting a .txt file to XML in any language. You have to define the XML schema and then write the code to generate the XML file. You could also read in your text file into some form of structure and then use the Flatten to XML functions to use the NI XML schema. If you need to use your own XML schema then you would need to use the XML Parser VIs to generate your XML file. Alternatively, you could use LabXML or JKI's EasyXML Toolkit.

  • How to convert ALV output into XML format.

    Hi all,
    I just want to know how to convert an ALV output into a XML format, this is really urgent.
    regards,
    Ruchika saini

    This program exports an internal table to an XML file. *----
    Report ZPRUEBA_MML_13 *
    Export an internal table to XML document *
    NO BORRAR ESTE CODIGO *
    REPORT ZPRUEBA_MML_13.
    PANTALLA SELECCION *
         PARAMETERS: GK_RUTA TYPE RLGRAP-FILENAME.
    PANTALLA SELECCION *
    TYPE TURNOS *
    TYPES: BEGIN OF TURNOS,
         LU LIKE T552A-TPR01,
         MA LIKE T552A-TPR01,
         MI LIKE T552A-TPR01,
         JU LIKE T552A-TPR01,
         VI LIKE T552A-TPR01,
         SA LIKE T552A-TPR01,
         DO LIKE T552A-TPR01,
    END OF TURNOS.
    TYPE TURNOS *
    TYPE SOCIO *
    TYPES: BEGIN OF SOCIO,
         NUMERO LIKE PERNR-PERNR,
         REPOSICION LIKE PA0050-ZAUVE,
         NOMBRE LIKE PA0002-VORNA,
         TURNOS TYPE TURNOS,
    END OF SOCIO.
    TYPE SOCIO *
    ESTRUCTURA ACCESOS *
    DATA: BEGIN OF ACCESOS OCCURS 0,
         SOCIO TYPE SOCIO,
    END OF ACCESOS.
    ESTRUCTURA ACCESOS *
    START OF SELECTION *
    START-OF-SELECTION.
         PERFORM LLENA_ACCESOS.
         PERFORM DESCARGA_XML.
    END-OF-SELECTION.
    END OF SELECTION *
    FORM LLENA_ACCESOS *
    FORM LLENA_ACCESOS.
    REFRESH ACCESOS.
    CLEAR ACCESOS.
    MOVE: '45050' TO ACCESOS-SOCIO-NUMERO,
                   'MOISES MORENO' TO ACCESOS-SOCIO-NOMBRE,
                   '0' TO ACCESOS-SOCIO-REPOSICION,
                   'T1' TO ACCESOS-SOCIO-TURNOS-LU,
                   'T2' TO ACCESOS-SOCIO-TURNOS-MA,
                   'T3' TO ACCESOS-SOCIO-TURNOS-MI,
                   'T4' TO ACCESOS-SOCIO-TURNOS-JU,
                   'T5' TO ACCESOS-SOCIO-TURNOS-VI,
                   'T6' TO ACCESOS-SOCIO-TURNOS-SA,
                   'T7' TO ACCESOS-SOCIO-TURNOS-DO.
    APPEND ACCESOS.
    CLEAR ACCESOS.
    MOVE: '45051' TO ACCESOS-SOCIO-NUMERO,
                   'RUTH PEÑA' TO ACCESOS-SOCIO-NOMBRE,
                   '0' TO ACCESOS-SOCIO-REPOSICION,
                   'T1' TO ACCESOS-SOCIO-TURNOS-LU,
                   'T2' TO ACCESOS-SOCIO-TURNOS-MA,
                   'T3' TO ACCESOS-SOCIO-TURNOS-MI,
                   'T4' TO ACCESOS-SOCIO-TURNOS-JU,
                   'T5' TO ACCESOS-SOCIO-TURNOS-VI,
                   'T6' TO ACCESOS-SOCIO-TURNOS-SA,
                   'T7' TO ACCESOS-SOCIO-TURNOS-DO.
    APPEND ACCESOS.
    ENDFORM.
    FORM LLENA_ACCESOS *
    FORM DESCARGA_XML *
    FORM DESCARGA_XML.
    DATA: L_DOM TYPE REF TO IF_IXML_ELEMENT,
                   M_DOCUMENT TYPE REF TO IF_IXML_DOCUMENT,
                   G_IXML TYPE REF TO IF_IXML,
                   W_STRING TYPE XSTRING,
                   W_SIZE TYPE I,
                   W_RESULT TYPE I,
                   W_LINE TYPE STRING,
                   IT_XML TYPE DCXMLLINES,
                   S_XML LIKE LINE OF IT_XML,
                   W_RC LIKE SY-SUBRC.
    DATA: XML TYPE DCXMLLINES.
    DATA: RC TYPE SY-SUBRC,
    BEGIN OF XML_TAB OCCURS 0,
                   D LIKE LINE OF XML,
    END OF XML_TAB.
    CLASS CL_IXML DEFINITION LOAD.
    G_IXML = CL_IXML=>CREATE( ).
    CHECK NOT G_IXML IS INITIAL.
    M_DOCUMENT = G_IXML->CREATE_DOCUMENT( ).
    CHECK NOT M_DOCUMENT IS INITIAL.
    WRITE: / 'Converting DATA TO DOM 1:'.
    CALL FUNCTION 'SDIXML_DATA_TO_DOM'
    EXPORTING
                   NAME = 'ACCESOS'
                   DATAOBJECT = ACCESOS[]
    IMPORTING
                   DATA_AS_DOM = L_DOM
    CHANGING
                   DOCUMENT = M_DOCUMENT
    EXCEPTIONS
                   ILLEGAL_NAME = 1
                   OTHERS = 2.
    IF SY-SUBRC = 0.
                   WRITE 'Ok'.
    ELSE.
                   WRITE: 'Err =',
                   SY-SUBRC.
    ENDIF.
    CHECK NOT L_DOM IS INITIAL.
    W_RC = M_DOCUMENT->APPEND_CHILD( NEW_CHILD = L_DOM ).
    IF W_RC IS INITIAL.
                   WRITE 'Ok'.
    ELSE.
                   WRITE: 'Err =',
                   W_RC.
    ENDIF.
    CALL FUNCTION 'SDIXML_DOM_TO_XML'
    EXPORTING
                   DOCUMENT = M_DOCUMENT
    IMPORTING
                   XML_AS_STRING = W_STRING
                   SIZE = W_SIZE
    TABLES
                   XML_AS_TABLE = IT_XML
    EXCEPTIONS
                   NO_DOCUMENT = 1
                   OTHERS = 2.
    IF SY-SUBRC = 0.
                   WRITE 'Ok'.
    ELSE.
                   WRITE: 'Err =',
                   SY-SUBRC.
    ENDIF.
    LOOP AT IT_XML INTO XML_TAB-D.
                   APPEND XML_TAB.
    ENDLOOP.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
                   BIN_FILESIZE = W_SIZE
                   FILENAME = GK_RUTA
                   FILETYPE = 'BIN'
    TABLES
                   DATA_TAB = XML_TAB
    EXCEPTIONS
                   OTHERS = 10.
    IF SY-SUBRC <> 0.
                   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.
    Message was edited by:
            Hymavathi Oruganti

  • Paid job: convert .stl file into .xml to import into FCP. Anyone?

    I need someone to convert my two .stl files (subtitles) exported from DVD SP and convert them into files (.xml?) compatible with Final Cut Pro. I need to Import these files into FCP and burn a Quicktime file with subtitles.
    I can pay someone (not millions!) to do this, since I have no clue and anything I was suggested doesn't work.
    Thanks
    Paula

    Can anyone help me?
    I absolutely need to import the subtitles into Final Cut and re-writing all of them manually would take forever.
    Please let me know if there is any program I need to use.
    Thanks for all tips
    Paula

  • How should convert text file into XML file?

    I do a project "WEB SERVER LOG ANALYZER" using JSP. For that i copy the content of log file into the other file . how i convert it into XML file . xplain with coding

    Read this [page.|http://www.devx.com/getHelpOn/10MinuteSolution/20356]

  • How to convert DTD files into XML(template) by using Java ?

    I am a beginner to java,and want to convert a random DTD file
    into a XML template(having no data).
    any guys can give me some suggestions ?
    thanks very much

    DTD allow you to validate a XML file.
    To do so, you can use API such as dom or xalan.
    To transform an XML file from a vocabulary A to vocabulary B, you have to write a XSLT style sheet, and use xerces to perform the transformation.
    Using tools such as XSL-FO, you can transform your XML into PDF.

  • How to convert VCD files into readable format on iDVD, iMovie, DVD player

    I found a bunch of old VCDs that I want to convert so that I can use them on iDVD, iMovie. What is the best free converter and would appreciate any tips as to the best way to reduce any loss of resolution. I tried last year converting thru mpeg streamclip and the movie came out pixelated in .mov.

    ffmpeg might be very difficult to install and use, but not FFMpegX. FFMpegX takes ffmpeg, adds a very simple Mac OS X UI on top, and packages it as an application bundle. No files to put in strange places, and simple to use.
    I highly recommend it. It comes preconfigured with setting for common file formats and automatically recognizes the input format. You can simply tell it to convert a directory of files from whatever format they were in to H.264 QuickTime movies and it'll do it.

  • How to convert  AI file into xml having keywords and coordinates

    Hi,
    I am new to AI and I am facing problem in exporting AI file.My AI file contains the Template for business card i.e. it has image and text field(static text) over it .Requirement is, the exported xml (like FXG) should have text fied attributes like x,y coordinates,font size ,style etc. and Keywords inserted in it.In SVG file I am able to export it in SVG  but it's parsing taking lot of time.In FXG I am not getting those keywords,some attributes are getting drop.Is there any way to get the XML in that format(having x,y cordinates,style etc for text field along with keywords) ??
    Thanks

    If you're a developper, you should try to generate your own xml format, using Extended Script ToolKit (based on Javascript) or PatchPanel/Switchboard (based on Actionscript3).
    PatchPanel and Switchboard can be found at Adobe Labs, the Extended Script ToolKit is a part of CS4.
    For the documentation part, PatchPanel and Switchboard have their own documentation available in the zip file ; the illustrator javascript reference is here : http://partners.adobe.com/public/developer/en/illustrator/sdk/AIJavaScriptReference.pdf
    Have fun

  • Convert csv file into XML

    Hi buddies,
    I want to read the values of csv file in XML. Can anyone suggest me.. how to do so?
    bye
    its reeju

    Hallo,
    it is really quite easy! Our firm has developed a proprietary technology for a life assurance application which is configurable and adapts to changing requirements in the mapping between the CSV format and the XML. Unfortunately, I cannot release the technology to you, unless you wish to purchase it, or purchase consultancy from us.
    I can however give you a couple of hints.
    The most important starting position is to identify on paper how you want to map the fields in your csv-file to XML elements. You need to prepare a schema for the XML file, to document its structure. When you have done this, then you can start to implement the necessary solution.
    Then you need to parse your CSV-file, to identify the fields in each line. It is often helpful if the first line of the csv-file contains the field names as a check, but it is not 100% necessary. You could, for example, store the fields in a Vector, or with associated field names in a Hashtable. You could build a Hashtable which maps csv-fields to XML-element-names. You then go through the individual fields and build a DOM-Tree, inserting the associated XML-elements in the correct positions. It is then a simple matter to transform your DOM-Tree to an XML file. For speed of implementation, we normally use XALAN with an xslt script, so that the XML looks reasonably formatted in the file.
    Good luck
    David Singleton
    [email protected]

  • How to convert xls files into xml

    hi all,
    please tell me how to convert the xls files into xml

    Hey Sayee,
    This gives you step by step procedure to start up
    saptechnical  com/Tutorials/XI/Adapter/Index.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
    Regards
    Pothana

  • Converting Audio files into a format Final Cut can recognize

    Final Cut Express 4
    Ladies and Gentlemen,
    In a previous discussion I noted that Final cut would not allow me to hear imported mp3's and mp4a's in the editing timeline, therefore, my question is:
    What are some programs that will offer me the ability to convert mp3 or mp4a files into a AIFF 48k?
    thanks,
    http://www.youtube.com/user/Judadiah

    I would recommend Audacity, a free recorder and transcoder, available here:
    http://audacity.sourceforge.net/
    Audacity® is free, open source software for recording and editing sounds. It is available for Mac OS X, Microsoft Windows, GNU/Linux, and other operating systems.

Maybe you are looking for

  • Ipod restores in XP not vista? What's wrong?

    Good morning all, I'm on my 4th Touch since Christmas as they keep bricking. I've had an iPod before and I look after it, so I'm not quite a novice but not massively experienced. Anyway, I've got the "disk cannot be read or written to" error, so I tr

  • Somehow i have got mackeeper and the smartsearchnet on mac air. I do not know how to get rid of it! please help me

    I have got mackeeper and smart search.net on my Mac air. I am new to mac's so i am so lost in how to get rid of things. Im not sure how i got it but i just want it gone now   mac book is only a couple months old so running all latest programmes on it

  • Oracle Linux 6.2 64bit install problem

    Hi all, I had a installation problem of 64bit Oracle Linux 6.2 with HP proliant dl380 g7 (build-in P410i array controller), when i try to install the OS, it will keep in black screen after loading the vmlinuz. I had try the 5.8 32bit version it can p

  • Imaging problem LR 2.7

    Has anyone seen this issue arise on images that were imported ok, then  all of a sudden Lightroom image rendering will only do this? The source file appears okay as this does not happen when viewed with  alternative viewer programs.    However, the e

  • Configuration Change Error

    Hi, T-Code: Solar02 Configuration. I have created a business Process for sales order creation. Process Steps are Inquiry, Quotation, Sales Order. But when I click on Execute button for  Inquiry It showing information " No system found for component S