Reading contents of a SAXSource.

Hi,
I am trying to read a CSV Flat File and convert it into XML using XSLT. I am passing the SAXSource object to the transformer and get back the StreamResult from it. Is there any way that I can read the contents of the SAXSource object. I mean the contents in the SAXSource before we apply the XSLT to it.
Can anyone help me out in this. Thanks in advance.

One small problem-- XSLT works on XML input, and a CSV file is not valid xml input -- not even close.
One way I have seen to process data like this, if it is very well-formed, is to read it as a flat file, and then make the same calls as SAX would it it were really processing an XML file.
For example, assume your data is grades for an exam.
Fred,90,A
Jane,85,B
Jim,50,Fand you want to convert it into:
<grades>
  <student name="Fred" grade="90" letter="A"/>
  <student name="Jane" grade="85" letter="B"/>
  <student name="Jim" grade="50" letter="F"/>
</grades>You would call a ContentHandler with a
startDocument(), then a
startElement("", "grades","grades", null);
The you loop through the rows of the input file and for each
make an Attributes with the value of grade and letter, and then
call
startElement(...) and
endElement(...)
etc.
(This is based on Michael Kay's idea in his Version 2 XSLT book for processing GEDCOM genealogy data with SAX. It is a well-formed but not-XML data stream.)
Dave Patterson

Similar Messages

  • Error message on Itunes. Cannot read contents of Ipod....

    I forgot to eject my sons Ipod touch before I unplugged it from the USB. Nowwhen I plug it in it tells me itunes cannot read contents of ipod must restore to factory settings.. Please help?! I've tried restarting my computer and Ipod. I've updated Itunes. I used a different cord and I went into settings and reset everything. I'm affraid to restore th Ipod because he has bought games that I don't want him to loose.... Any suggestions?

    That happens when you do not eject the iPod and the iPod is syncing.or upddating.
    Connect the iOS device to your computer and restore via iTunes. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • ALV GRID Problem with reading contents

    Hi there! I'm quite new with ABAP and I have some problems with the syntax of it. Maybe I should first describe my aim and then I'll show you my code.
    1. I read contents from two database tables, called 'zbc_dan_registry' and 'zbc_dan_category'.
    'zbc_dan_registry' has 2 columns: name, value.
    zbc_dan_category' has 1 column: category.
    Now I want to have an ALV Grid, that displays the contents of 'zbc_dan_registry' and one additional column with dropdown fields, where the user can select a category for each row. This is, what my code already does.
    Now I want to save the contents of the whole table in a new table 'zbc_dan_registrz' (you see: 'registrz', not 'registry'!) with 3 columns:
    name, category, value.
    My problem is, how can I read the contents of the ALV Grid, with the user selected category for each row, and save them in an internal table? I've tried to adapt the code of "BCALV_EDIT_04", but I don't get it running.
    Some detailled help would be great, you know, I'm really working hard to understand ABAP, but it's really hard for me. Thanks for your support and help!!
    Here's my code so far:
    *& Report  ZBC400_DAN_TESTNO4
    REPORT  ZBC400_DAN_TESTNO4.
    DATA: lt_registrz TYPE TABLE OF zbc_dan_regstrz WITH HEADER LINE,
          lt_category TYPE TABLE OF zbc_dan_category WITH HEADER LINE,
          ls_category TYPE zbc_dan_category, "Struktur Kategorie
          ok_code LIKE sy-ucomm,
          container_r TYPE REF TO cl_gui_custom_container,
          grid_r TYPE REF TO cl_gui_alv_grid,
          gc_custom_control_name TYPE scrfname VALUE 'CONTAINER_REG',
          fieldcat_r TYPE lvc_t_fcat,
          layout_r TYPE lvc_s_layo,
          lt_ddval TYPE lvc_t_drop,
          ls_ddval TYPE lvc_s_drop,
          c TYPE i.
    CLASS lcl_event_receiver DEFINITION DEFERRED.
      DATA g_verifier TYPE REF TO lcl_event_receiver.
      DATA: BEGIN OF gt_outtab OCCURS 0.
        INCLUDE STRUCTURE zbc_dan_regstrz.
        DATA: celltab TYPE lvc_t_styl.
      DATA: END OF gt_outtab.
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
      TYPES: BEGIN OF lt_registrz_key.         "Struktur mit den Schlüsseln der Tabelle 'Registry'
        TYPES:  name TYPE zbc_dan_name,
                value TYPE zbc_dan_value,
                category TYPE zbc_dan_cat.
      TYPES: END OF lt_registrz_key.
      TYPES:  ls_registrz_keys TYPE STANDARD TABLE OF lt_registrz_key,
              ls_registrz_table TYPE STANDARD TABLE OF zbc_dan_regstrz.
      METHODS: get_inserted_rows EXPORTING inserted_rows TYPE ls_registrz_keys.
      METHODS: refresh_delta_tables.
      METHODS: handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid IMPORTING er_data_changed.
    *  METHODS: get_inserted_rows EXPORTING inserted_rows TYPE registrz_keys.
    *  METHODS: refresh_delta_tables.
      PRIVATE SECTION.
      DATA: inserted_rows TYPE ls_registrz_keys.
      DATA: error_in_data TYPE c.
      METHODS: get_cell_values IMPORTING row_id TYPE int4 pr_data_changed TYPE REF TO cl_alv_changed_data_protocol EXPORTING key TYPE lt_registrz_key.
    ENDCLASS.
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_data_changed.
        DATA: ls_good TYPE lvc_s_modi,
              ls_new TYPE lvc_s_moce.
        error_in_data = space.
        IF error_in_data = 'X'.
          CALL METHOD er_data_changed->display_protocol.
        ENDIF.
      ENDMETHOD.
      METHOD get_cell_values.
        CALL METHOD pr_data_changed->get_cell_value
          EXPORTING i_row_id = row_id i_fieldname = 'NAME'
            IMPORTING e_value = key-name.
        CALL METHOD pr_data_changed->get_cell_value
          EXPORTING i_row_id = row_id i_fieldname = 'VALUE'
            IMPORTING e_value = key-value.
        CALL METHOD pr_data_changed->get_cell_value
          EXPORTING i_row_id = row_id i_fieldname = 'CATEGORY'
            IMPORTING e_value = key-category.
      ENDMETHOD.
      METHOD get_inserted_rows.
        inserted_rows = me->inserted_rows.
      ENDMETHOD.
      METHOD refresh_delta_tables.
        clear me->inserted_rows[].
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
        SELECT client name value
          INTO CORRESPONDING FIELDS OF TABLE lt_registrz FROM zbc_dan_regstry.
        SELECT category INTO CORRESPONDING FIELDS OF TABLE lt_category FROM zbc_dan_category.
    CALL SCREEN 0100.
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'BACK'.
          SET SCREEN 0.
          MESSAGE ID 'BC400' TYPE 'S' NUMBER '057'.
        WHEN 'SAVE'.
          PERFORM save_data.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.
    MODULE clear_ok_code OUTPUT.
      CLEAR ok_code.
    ENDMODULE.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'DYNPRO100'.
      SET TITLEBAR 'D0100'.
    ENDMODULE.
    MODULE display_alv OUTPUT.
      PERFORM display_alv.
    ENDMODULE.
    FORM display_alv.
    IF grid_r IS INITIAL.
    *----Creating custom container instance
      CREATE OBJECT container_r
      EXPORTING
        container_name = gc_custom_control_name
      EXCEPTIONS
        cntl_error = 1
        cntl_system_error = 2
        create_error = 3
        lifetime_error = 4
        lifetime_dynpro_dynpro_link = 5
        others = 6.
        IF sy-subrc <> 0.
    *--Exception handling
        ENDIF.
    *----Creating ALV Grid instance
        CREATE OBJECT grid_r
        EXPORTING
          i_parent = container_r
        EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init = 2
          error_cntl_link = 3
          error_dp_create = 4
          others = 5.
          IF sy-subrc <> 0.
    *--Exception handling
          ENDIF.
          CREATE OBJECT g_verifier.
          SET HANDLER g_verifier->handle_data_changed FOR grid_r.
    *----Preparing field catalog.
          PERFORM prepare_field_catalog CHANGING fieldcat_r.
    *----Preparing layout structure
          PERFORM prepare_layout CHANGING layout_r.
    *----Here will be additional preparations
    *--e.g. initial sorting criteria, initial filtering criteria, excluding
    *--functions
          CALL METHOD grid_r->set_table_for_first_display
          EXPORTING
    * I_BUFFER_ACTIVE =
    * I_CONSISTENCY_CHECK =
    * I_STRUCTURE_NAME =
    * IS_VARIANT =
    * I_SAVE =
    * I_DEFAULT = 'X'
            is_layout = layout_r
    * IS_PRINT =
    * IT_SPECIAL_GROUPS =
    * IT_TOOLBAR_EXCLUDING =
    * IT_HYPERLINK =
          CHANGING
            it_outtab = lt_registrz[]
            it_fieldcatalog = fieldcat_r
    * IT_SORT =
    * IT_FILTER =
          EXCEPTIONS
            invalid_parameter_combination = 1
            program_error = 2
            too_many_lines = 3
            OTHERS = 4.
          IF sy-subrc <> 0.
    *--Exception handling
          ENDIF.
          ELSE.
            CALL METHOD grid_r->refresh_table_display
    * EXPORTING
    * IS_STABLE =
    * I_SOFT_REFRESH =
          EXCEPTIONS
            finished = 1
            OTHERS = 2.
          IF sy-subrc <> 0.
    *--Exception handling
          ENDIF.
        ENDIF.
        CALL METHOD grid_r->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_enter.
        CALL METHOD grid_r->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_modified.
    ENDFORM.
    FORM prepare_field_catalog CHANGING pt_fieldcat TYPE lvc_t_fcat.
      DATA ls_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
      EXPORTING
        i_structure_name = 'ZBC_DAN_REGSTR2'
      CHANGING
        ct_fieldcat = pt_fieldcat[]
      EXCEPTIONS
        inconsistent_interface = 1
        program_error = 2
        OTHERS = 3.
      IF sy-subrc <> 0.
    *--Exception handling
      ENDIF.
      LOOP AT pt_fieldcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN 'NAME'.
            ls_fcat-coltext = 'Name'.
            ls_fcat-outputlen = '40'.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'VALUE'.
            ls_fcat-coltext = 'Wert'.
            ls_fcat-outputlen = '30'.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'CATEGORY'.
              LOOP AT lt_category into ls_category.
                ls_ddval-handle = 1.
                ls_ddval-value = ls_category-category.
    *            ls_ddval-style = cl_gui_alv_grid=>mc_style_enabled.
                APPEND ls_ddval TO lt_ddval.
             ENDLOOP.
             CALL METHOD grid_r->set_drop_down_table
                EXPORTING it_drop_down = lt_ddval.
            ls_fcat-edit = 'X'.
            ls_fcat-drdn_hndl = '1'.
            ls_fcat-coltext = 'Kategorie'.
            MODIFY pt_fieldcat FROM ls_fcat.
        ENDCASE.
      ENDLOOP.
    ENDFORM.
    FORM prepare_layout CHANGING ps_layout TYPE lvc_s_layo.
      ps_layout-zebra = 'X'.
      ps_layout-grid_title = 'Kategorie zur Registry hinzufügen'.
      ps_layout-smalltitle = 'X'.
    ENDFORM.
    FORM save_data.
      DATA: ls_ins_keys TYPE g_verifier->ls_registrz_keys,
            ls_ins_key TYPE g_verifier->lt_registrz_key,
            ls_registrz TYPE zbc_dan_regstrz,
            ls_outtab LIKE LINE OF gt_outtab,
            lt_instab TYPE TABLE OF zbc_dan_regstrz.
      CALL METHOD g_verifier->get_inserted_rows IMPORTING inserted_rows = ls_ins_keys.
      LOOP AT ls_ins_keys INTO ls_ins_key.
        READ TABLE gt_outtab INTO ls_outtab
        WITH KEY  name = ls_ins_key-name
                  value = ls_ins_key-value
                  category = ls_ins_key-category.
        IF sy-subrc = 0.
          MOVE-CORRESPONDING ls_outtab TO ls_registrz.
          APPEND ls_registrz TO lt_instab.
        ENDIF.
      ENDLOOP.
      INSERT zbc_dan_regstrz FROM TABLE lt_instab.
      CALL METHOD g_verifier->refresh_delta_tables.
      ENDFORM.

    Hi Hans,
    You raised the Question in the Webdynpro ABAP forum. Here its very diffcult to get the answer from this forum. Please close it here and raise the same question in ABAP General Forum there you will get faster and so many anwsers.
    Please close the question here.
    Warm Regards,
    Vijay

  • ITunes 11.1.3.8 won't read contents of any device

    Using Win8, iTunes won't read contents of any device. using 11.1.13.8
    Have seen many fixes for it.
    Need help. Newer computer with new install. New iPhone and iPad Retna
    Please help if you can.
    Thanks

    What do you mean "iTunes won't read contents"?
    What specifically is happening?
    Was the ENTIRE iTunes folder copied from the old computer to the new computer?  iDevices are not and have never been backup devices or a way to move content to a new computer.

  • Read contents of file into outputstream

    Can anyone suggest that what are the best methods to read contents of a file (better cater to both conditions: big file size and small file size) into outputstream and send through socket...
    Thanks.

    Thanks for the answer. But I would like to ask the following question:
    I have a VB application which generates a file. I have a Java application which read the contents of the file.
    is it possible that VB side calls the read() (file) and send() (through socket to destination) methods in Java application once the file is generated? Actually my objective is VB is responsible for generating a file for Java application to read data from and then send the data (not file) to destination....If it is impossible to achieve, any alternative to achieve this?
    Thanks
    Edited by: whkhoo on Jun 15, 2008 8:45 PM

  • Read content of email type MHT

    Hello all,
    I have a small problem to read content of incoming emails in SO , where OBJ_TYPE = 'MHT'.
    Using FM SO_DOCUMENT_READ_API1 I get content of email in table  OBJECT_CONTENT, and after
    conversion I have text like this:
    "Content-Type: multipart/related;###boundary=" =_Part_7_9758530.1276774400182"####  =_Part_7_9758530.1276774400182##Content-Transfer-Encoding: quoted-printable##Content-Typ
    e-mailu jsou data z formul=E1=F8e vypln=ECn=E9ho u=9Eiv=##atelem na str=E1nk=E1ch www.cez.cz.####typ formul=E1=F8e: PLYN##verze formul=E1=F8e: DOM_EXT##kampa=F2: KAM2####E
    : 5E5200ZZ02-90002061=20#### ##=_Part_7_9758530.1276774400182  ######################################################################################### # # # # #"
    This is HTML code with tag , but I need to display (and save to DB) to customer only plain text....Can anybody help me to get a plain text of email ?
    Thanks a lot for any idea...
    Milan Dobias

    Solved, using this thread [how to decode Quoted-printable content to plain text;
    Edited by: Milan Dobias on Jul 21, 2010 9:50 AM

  • Read content of file which is ZIPed

    I need to read contents of a file which is present in ZIP file.
    The zip file is present on online server. I am able to get the Zip Input stream for the Zip file and also able to retrive the file names which are present but when I am trying to retrive the content of file is get a String which has only the file names of the zip. Please suggest what to do.
    Following is my Code.
    // aConn.getInputStream() Gives me access to Zip file present on online Server
    ZipInputStream fileIn = new ZipInputStream(aConn.getInputStream());
                 anEntry = inputStream.getNextEntry();
                 if (anEntry != null) {
                      String filename = arEntry.getFilename();
                                            byte[] b = new byte[2024];
                      fileIn.read(b);
                                 sb.append(b.toString());
                 }

    Reading an input stream into an array of bytes and then calling toString() on that byte array isn't going to give you the contents of the input stream meaningfully. For one thing it might not even be textual data. And secondly that's not how you get textual data.
    A better approach would probably be to get the number of bytes of the given entry from the ZipEntry.getSize method, create a byte array of that size, load only that many bytes, and then (if you're sure it's text data) send the byte array to a String constructor. Or you could use a java.io.ByteArrayOutputStream for that. Note that you'll need to know the character encoding for this.

  • If I use an app to remove duplicate pix does the app  read content  or only  the file name such as IMG

    If I use an app to remove duplicate pix does the app  read content  or only  the file name such as IMG. I have some 2500 pix  and the thought of trawling thru  them  toremove duplicates is mind numbing.
    If the apps  read the content then I am ok about that  but if they  only read the  file name ... they maybe  deleting stuff that  isnt really a duplicate

    You have to contact with the developer of the application. We do not know which app you are referring to and we do not know how that application works, but all apps of that type are supposed to delete duplicate files with the same format (like IMG, JPG...)

  • Itunes cannot read contents of the ipod.  go to summary tab in ipod preferences and click restore to restore to factory settings

    I plugged in my ipod to install the latest version of itunes on my computer and I got this message:  "itunes cannot read contents of the ipod.  go to summary tab in ipod preferences and click restore to restore to factory settings".  I can't get rid of it and now have zero songs on my ipod but all of my songs are in my library.  Help, please.

    Sorry, my mistake, the nano has a flash-based drive so most of that post won't apply, although you might see if the DFU restore section works.
    Try also suggestions from iPod nano: Error message saying that iPod 'could not be identified properly'
    tt2

  • When I connect ipod, itunes comes up with message - cannot read contents

    Help.... lots of hrs spent trying to work this out. Can anyone help me
    Everytime i connect my ipod (new nano 3rd generation 8gb) to the computer iTunes message comes up that itunes conect read contents of my ipod. It deletes songs on there then message comes up saying 'Go to summary tab in ipod preferences & click Restore to factory setting.'
    I share itunes with my kids, (they have nano originals), which don't seem to be affected like mine is??
    I can put songs on to ipod, however next time i connect ipod to add more music it deletes again......can anyone help me?
    Message was edited by: iswim

    Uninstall everything related to Apple, then redownload iTunes and install.

  • FTP to Read content of Text/xml file

    Hi,
    I need a help for reading content of text/xml file through FTP. Below I just am explaining the scenario.
    Our application server is in UNIX. Now we have to run a report program to access in to a FTP server which is in windows platform. Using FTP_CONNECT, FTP_COMMAND, FTP_DISCONNECT we are able to connect to FTP server and also able to copy files from FTP server to SAP application server. After copied in application server, we are able to read the content of the txt file in to internal table in ABAP program using OPEN DATASET. But our requirement is that we want to read the text or xml file content into internal table while accessing into FTP server from SAP application instead of after copying the file into application server.
    So please help me to solve my problem.
    -Pk

    Thank you Bala,
    But can you help me what should I pass against FNAME and CHARACTER_MODE Import parameter? Should I pass the full path of the file with name or only I have to pass file name ? For example if my text file name in FTP Server is test.txt and the IP of the ftp server is 10.10.2.3 then should I pass the value against FNAME as '
    10.10.2.3\xyz\text.txt' ? Here xyz is the name of the directory in C drive where test.txt is exist.
    Please help me.
    -pk

  • How to read contents of files that do not fall under public security group?

    Hi,
    I need to read the contents of a WCM based xml file that does not fall under public security.
    The process is like this:
    First the user makes chnages to the content.
    The workflow will be triggred based on the security group metadata that is associated with the content.
    Once the content is finally approved our workflow calls a custom idoc script.
    First we tried directly reading the xml contents from the idoc script which was still in the context of workflow. But since content item is still in workflow I was not able to read the changes. So I created a separate content publisher thread and read the DOC_INFO and checked for the dStatus value. If the value is RELEASED then I reading contents by calling ssIncludeXml idoc script.
    This was working fine for public content. But now the requirement is that all content cannot be public. Content authors should not be able to edit the content that does not belong to their group, So we created security groups (and roles) and are associating that groups to the relavent content.
    Beacuse of this change I am not not able to read the non public content. The call to DOC_INFO_BY_NAME service, which gives all the content files' metadata, is expecting the user to be logged in to give the details.
    I tried calling the CHECKIN service with sysadmin and captured the cookies returned by that service and use cookies for the DOC_INFO_BY_NAME service call. But the service call was faling. It is throing the 401 forbidden error with the message that user needs to be logged in to get the details.
    How to address this problem. Someone please help.
    Note: I also tried using ridc for this. I was able to get it working but since it is executing in the context of server ridc api is changing server's environment properties like HTTP_HOST, HTTP_CGIPATHROOT etc. It also seemed like system was becoming non functional after using ridc. When I called check-in the system metadata values like security group are no more loading. Not sure if ridc is the culprit here but worried that it might be causing this issue.
    Regards,
    Pratap

    Sorry, I posted too much details while posting this question. I was saying "not able to read *non* public content".
    Anyway, I was able to resolve the issue. I was able to authenticate with sysadmin credentials in the request to service using basic authentication and was able to read doc info with that credential.
    But I realized there is more than option for reading secure content.
    - I could set user name as sysadmin in the m_environment (if I am in the context of a service) and the call the DOC_INFO_BY_NAME service.
    - I can post an HTTP request to DOC_INFO_BY_NAME service with sysadmin credentials and do basic authorization via the connection. (This is what i have done successfully as of now )
    - I could add guest role to all security groups with R (read) privileges.
    I will look into all options and implement the one which is more apt.
    Regards,
    Pratap

  • Xpath expression to read contents

    requesting to help to write an xpath expression to read contents of the below xml.
    i/p doc
    <transaction tid='00000000000000001852' ts='2012-05-10 08:43:15.000631' ops='2' commitTs='2012-05-10 08:43:15.000631'>
    <operation table='INTEREST_ACCRUAL_TERMS' type='UPDATE_FIELDCOMP' pos='00000000000000001852' numCols='20'>
    <col name='INTEREST_ACCRUAL_TERMS_ID' index='0'>
    <before missing='true'/>
    <after><![CDATA[23287]]></after>
    </col>
    <col name='INSTRUMENT_ID' index='1'>
    <before missing='true'/>
    <after><![CDATA[23287]]></after>
    </col>
    <col name='SWAP_LEG_ID' index='2'>
    <before missing='true'/>
    <after isNull='true'/>
    </col>
    <col name='PAYMNT_BUS_DAY_CONVEN_CD' index='3'>
    <before missing='true'/>
    <after isNull='true'/>
    </col>
    <col name='ACCRUAL_CALC_METHOD_CD' index='4'>
    <before missing='true'/>
    <after><![CDATA[M]]></after>
    </col>
    </operation>
    <operation table='INTEREST_ACCRUAL_TERMS' type='UPDATE_FIELDCOMP' pos='00000000000000002255' numCols='20'>
    <col name='INTEREST_ACCRUAL_TERMS_ID' index='0'>
    <before missing='true'/>
    <after><![CDATA[23288]]></after>
    </col>
    <col name='INSTRUMENT_ID' index='1'>
    <before missing='true'/>
    <after><![CDATA[23288]]></after>
    </col>
    <col name='SWAP_LEG_ID' index='2'>
    <before missing='true'/>
    <after isNull='true'/>
    </col>
    <col name='PAYMNT_BUS_DAY_CONVEN_CD' index='3'>
    <before missing='true'/>
    <after isNull='true'/>
    </col>
    <col name='ACCRUAL_CALC_METHOD_CD' index='4'>
    <before missing='true'/>
    <after><![CDATA[M]]></after>
    </col>
    </operation>
    </transaction>
    Expecting result from the xml doc:
    <xml>
    <INTEREST_ACCRUAL_TERMS_ID>23287</INTEREST_ACCRUAL_TERMS_ID>
    <INSTRUMENT_ID>23287</INSTRUMENT_ID>
    <SWAP_LEG_ID/>
    <PAYMNT_BUS_DAY_CONVEN_CD/
    <ACCRUAL_CALC_METHOD_CD> M</ACCRUAL_CALC_METHOD_CD>
    </xml>
    <xml>
    <INTEREST_ACCRUAL_TERMS_ID>23288</INTEREST_ACCRUAL_TERMS_ID>
    <INSTRUMENT_ID>23288</INSTRUMENT_ID>
    <SWAP_LEG_ID/>
    <PAYMNT_BUS_DAY_CONVEN_CD/
    <ACCRUAL_CALC_METHOD_CD> M</ACCRUAL_CALC_METHOD_CD>
    </xml>

    Assuming the document resides in an XMLType table :
    SQL> select xmlserialize(document
      2           x.result_doc
      3           as clob indent -- for display purpose only
      4         )
      5  from tmp_xml t
      6     , xmltable(
      7        'for $i in /transaction/operation
      8         return <xml>
      9         {
    10           for $j in $i/col
    11           order by xs:integer($j/@index)
    12           return element { $j/@name } { data($j/after) }
    13         }
    14         </xml>'
    15        passing t.object_value
    16        columns result_doc xmltype path '.'
    17       ) x
    18  ;
    XMLSERIALIZE(DOCUMENTX.RESULT_
    <xml>
      <INTEREST_ACCRUAL_TERMS_ID>23287</INTEREST_ACCRUAL_TERMS_ID>
      <INSTRUMENT_ID>23287</INSTRUMENT_ID>
      <SWAP_LEG_ID/>
      <PAYMNT_BUS_DAY_CONVEN_CD/>
      <ACCRUAL_CALC_METHOD_CD>M</ACCRUAL_CALC_METHOD_CD>
    </xml>
    <xml>
      <INTEREST_ACCRUAL_TERMS_ID>23288</INTEREST_ACCRUAL_TERMS_ID>
      <INSTRUMENT_ID>23288</INSTRUMENT_ID>
      <SWAP_LEG_ID/>
      <PAYMNT_BUS_DAY_CONVEN_CD/>
      <ACCRUAL_CALC_METHOD_CD>M</ACCRUAL_CALC_METHOD_CD>
    </xml>
    Please post more specific details if that's not what you want (database version, origin of the doc etc.).

  • How can I read content in Gujarati language from website?

    I unable to read content in Gujarati language in any website. website like WWW.ojas. guj. nic. in

    hello, thanks for reporting that - i have the same rendering issue on the site you've mentioned and have filed [https://bugzilla.mozilla.org/show_bug.cgi?id=903507 bug #903507] for it.

  • Read content of web

    I want to create one class can read content(rows, columns of table) of dynamic web. but I can't.
    Help me!

    You may find this java.net.URL tutorial useful: http://java.sun.com/docs/books/tutorial/networking/urls/index.html

Maybe you are looking for

  • Acrobat 9 Pro: Sudden license issue prevent use

    When trying to open a pdf document in Acrobat 9 Pro, I get to open it, but after a few seconds a window pops up, titled: "Licensing for this product has stopped working." The message reads: "You cannot use this product at this time. You must repair t

  • Multiple Client Sessions [1 computer]

    I have been tasked with finding out whether or not it is feasible given Windows OS on a single computer with 1 IE browser to be able to start multiple sessions. Given multiple browser instances at the same time, can each be tracked as separate sessio

  • Meta-Data are missing for table

    Dear ALL , I am trying to call "HR_READ_INFOTYPE" from a Java program using rfc and I got this error: " Meta data equal to null is not allowed for field INFTY_TAB with type TABLE in meta data instance TABLES " the required table INFTY_TAB is used as

  • BT mistake for losing bank details but state they ...

    I changed my account to Santander. Contacted BT with new bank account details. Have a letter confirming those details. They promptly tried to take money from my old account! Now they have cancelled the direct debit, they have lost my bank details, sa

  • Any way to print off-center?

    Since Aperture centers the image on the paper, not within the printer's usable print area, it won't produce a 12x18 print on 13x19 paper on my Epson 4000, because the 4000 has a minimum bottom margin of 0.556". Aperture sets that as the minimum margi