Line Break for XML File

All,
I am able to generate xml file from an internal table. The problem is, if I open the file in IE everything looks good. When I open it in notepad or notepad++, everything is in one line. Can you tell me how to generate a line break after each tags.
Please find the following code used by me for reference.
LOOP AT lt_ohd INTO ls_ohd.
    ls_temp_ohd = ls_ohd.
    AT FIRST.
      l_ixml = cl_ixml=>create( ).
      l_document = l_ixml->create_document( ).
      l_element_ohd  = l_document->create_simple_element(
                  name = 'OHD'
                  parent = l_document ).
    ENDAT.
    AT NEW cc.
      CLEAR : lv_inhaltskom, lv_text.
      lv_inhaltskom = ls_temp_ohd-cc.
      CALL FUNCTION 'ISM_SELECT_TEXT_JJTIKO'
        EXPORTING
          pv_inhaltskom = lv_inhaltskom
        CHANGING
          pv_langtext   = lv_text.
      TRANSLATE lv_text TO UPPER CASE.
      l_value = lv_text.
      l_element_county  = l_document->create_simple_element(
                  name   = 'city_county'
                  value  = l_value
                  parent = l_element_ohd  ).
    ENDAT.
    AT NEW order.
      l_element_neighborhood  = l_document->create_simple_element(
                  name    = 'entry'
                  parent  = l_element_county  ).
    ENDAT.
    l_value = ls_temp_ohd-neighborhood.
    l_element_address  = l_document->create_simple_element(
                name   = 'neighborhood'
                value  = l_value
                parent = l_element_neighborhood ).
    l_value = ls_temp_ohd-address_detail.
    l_element_address  = l_document->create_simple_element(
                name   = 'address_detail'
                value  = l_value
                parent = l_element_neighborhood  ).
    l_value = ls_temp_ohd-order.
    l_element_address  = l_document->create_simple_element(
                name   = 'order'
                value  = l_value
                parent = l_element_neighborhood  ).
    l_value = ls_temp_ohd-item.
    l_element_address  = l_document->create_simple_element(
                name   = 'item'
                value  = l_value
                parent = l_element_neighborhood  ).
    l_value = ls_temp_ohd-cc.
    l_element_address  = l_document->create_simple_element(
                name   = 'cc'
                value  = l_value
                parent = l_element_neighborhood  ).
    l_value = ls_temp_ohd-address.
    l_element_address  = l_document->create_simple_element(
                name   = 'address'
                value  = l_value
                parent = l_element_neighborhood  ).
    l_value = ls_temp_ohd-price.
    l_element_address  = l_document->create_simple_element(
                name   = 'price'
                value  = l_value
                parent = l_element_neighborhood ).
    l_value = ls_temp_ohd-bed.
    l_element_address  = l_document->create_simple_element(
                name   = 'bed'
                value  = l_value
                parent = l_element_neighborhood  ).
    l_value = ls_temp_ohd-bath.
    l_element_address  = l_document->create_simple_element(
                name   = 'bath'
                value  = l_value
                parent = l_element_neighborhood  ).
    l_value = ls_temp_ohd-opentime.
    l_element_address  = l_document->create_simple_element(
                name   = 'opentime'
                value  = l_value
                parent = l_element_neighborhood  ).
    l_value = ls_temp_ohd-state.
    l_element_address  = l_document->create_simple_element(
                name   = 'state'
                value  = l_value
                parent = l_element_neighborhood ).
    l_value = ls_temp_ohd-zip.
    l_element_address  = l_document->create_simple_element(
                name   = 'zip'
                value  = l_value
                parent = l_element_neighborhood ).
    l_streamfactory = l_ixml->create_stream_factory( ).
    l_ostream = l_streamfactory->create_ostream_itable( table = lt_xml_table ).
    l_renderer = l_ixml->create_renderer( ostream  = l_ostream
                                          document = l_document ).
    l_rc = l_renderer->render( ).
    l_xml_size = l_ostream->get_num_written_raw( ).
  ENDLOOP.
Regards,
Salil
Edited by: salil vaidya on Jan 18, 2011 2:34 PM

Thanks.
But now, I have a syntax error.
BEGIN OF xml_line,
          data(256) TYPE x
END OF xml_line.
DATA: lt_xml_table      TYPE TABLE OF xml_line,
      ls_xml_table      TYPE xml_line.
LOOP AT lt_xml_table INTO ls_xml_table.
    CONCATENATE ls_string cl_abap_char_utilities=>cr_lf INTO ls_string.
    MODIFY lt_xml_table FROM ls_xml_table INDEX sy-tabix.
    CLEAR : ls_xml_table, ls_string.
  ENDLOOP.

Similar Messages

  • To get line number for xml file.

    how do u get th line number of a particular node i parse.
    is it possible only when error comes the line number and mesage can be displayed.
    is it possible when i use xpath expression for a particular node and if that xpath returns boolean false then can i get the line number where the node present..??
    plz reply..

    There are java classes that will give you the line number of records from files you are reading. Names begin with Line...

  • Line Break in XML?

    When I use "<br>" within my XML database, I get this
    error:
    "Expected end of tag 'br'(9,43)"
    I have tried <br>, </br>, <br></br>
    and searched... but haven't yet found a solution.
    Should I be using some kind of hex code?
    Thanks in advance for the assistance!
    Dan

    I spent a whole bloody day trying to solve this one!  Thanks for the advice here guys....
    Here's the "How to..." instructions I made for myself (I will need this later as a function of age)....
    Inserting <br /> line breaks in XML content:
    It's necessary to add a line of code directly after the dataset at the top of the (spry) htm page that sets the columnType:
    var dsRegInfoElem = new Spry.Data.XMLDataSet("regisinfo.xml", "sites/level1/site",{distinctOnLoad:true});
    dsRegInfoElem.setColumnType('datetime','html');<!--This line is necessary for the line breaks in the xml CDATA sections to work-->
    Make sure the xml tag that will contain the CDATA wrap is identified (here it's the <datetime> tag).
    Then, in the XML file, add the CDATA wrap just inside the tag like this:
    <datetime><![CDATA[texttexttexttext]]></datetime>
    Now just insert the <br /> where I need it!
    <datetime><![CDATA[texttext<br />texttext]]></datetime>

  • FXML - Line break for text-attribute (LABEL)

    Hi!
    How to define a text with a line break for a label in FXML?
    For example, I cant get this to work (\n):
    <Label text="Break\nLine"/> Thanks,
    Jörn

    Hi,
    If you use SceneBuilder Developer Preview 1.1 you will see that SceneBuilder generates this:
       <Label layoutX="266.0" layoutY="172.0" text="Break&#10;Line" />To enter a new line in a text label in SceneBuilder is easy (even though a bit hidden).
    If you hover the mouse over the label text property in the Inspector (right hand side), you will see a little cog menu fading in. If you click on it - you will be able to 'Switch to multi-lines mode' - you can then enter a text with new lines - then save the file and see how it's been handled...
    hope this helps,
    -- daniel

  • How to add payment advice for XML file filed in vendor account group

    Hi All,
    I have a requirment to add Payment advice for XML file field in vendor account group under payment transcation tap,
    kindly advice where i can add above mention field in vendor account group.
    thanks
    khaja

    done

  • Make DW default for XML files?

    I'm sure there's a way to do this that I'm missing, but I'd like to make DW my default app for XML files.  I know how this can be done on Windows (using "open with" and changing default), but I'm using Mac OSX.  I tried messing with the file types section of DW's preferences, but it didn't work.  Anyone know how to fix this?  Thanks.

    In the Mac Finder, select an XML file, and click More Info (or press Cmd+I - that's I, not a lowercase L) to bring up an Info panel. Expand the section that says Open With, and then select Dreamweaver from the pop-up menu (click Other, if it's not listed). Then click the Change All button to apply it to all XML files.

  • Package for xml file insersion

    hi every body
    if any body know the link for the package of xml file insersion into oracle database. and also parser for xml file then plz tell me.
    my email address is " [email protected] "

    hi every body
    if any body know the link for the package of xml file insersion into oracle database. and also parser for xml file then plz tell me.
    my email address is " [email protected] "

  • Line break for code postings

    Hi there,
    normally the forum software does insert automatically a line break for text posting. If i write a
    code posting with the {code} parameter, it does not do like that. Sometimes the posts runs
    out of the displayed field.
    It is a bug or wanted ?
    Regards Steffen

    Thanks.
    But now, I have a syntax error.
    BEGIN OF xml_line,
              data(256) TYPE x
    END OF xml_line.
    DATA: lt_xml_table      TYPE TABLE OF xml_line,
          ls_xml_table      TYPE xml_line.
    LOOP AT lt_xml_table INTO ls_xml_table.
        CONCATENATE ls_string cl_abap_char_utilities=>cr_lf INTO ls_string.
        MODIFY lt_xml_table FROM ls_xml_table INDEX sy-tabix.
        CLEAR : ls_xml_table, ls_string.
      ENDLOOP.

  • Flash Pro CS6 BUG - inconsistent end of line for xml files in library saved in xfl - MESSES UP SVN

    When saving in XFL with Flash CS6 on Mac (it also happened in CS5.5), the generated xml files in library often have inconsistend end of line, which blocks SVN commits and I have to manually go in the files and make them consistent.
    The XML nodes themselves all have \r\l as end of line, while, within <[CDATA[]]>, they only have \r.
    We think this happens only when creating new library items on mac, on windows it doesn't happen.
    This slows us down incredibly when working on a team using svn.
    SVN doesn't upload files with inconsistend line ending.
    Line ending shoul be consistent within the same xml file to make svn operations smooth.
    Check an image of the bug:
    http://www.pippoflash.com/_test/flash_bug_eof.png
    you can see clearly the differences.
    thank you
    Filippo

    Thanks Filippo, I could see that now!
    While I was investigating this, I found that this is even happening on a file created and saved on just Windows. I was able to reproduce this using the following steps
    - Create a new AS3 file on Windows
    - Drag out a component to the stage say a Button component from the User Interface section of the Components panel
    - Convert the button component to a Movie Clip Symbol
    - Save the file as XFL and examine the Library XML files (the End of Line is just 'LF' in CDATA section whereas it is 'CR LF' everywhere else)
    Since you were saying 'Items created in windows have no problem', does that means, SVN can commit those without any issues for you? And do you face problem only when the file is Created and Saved on Mac(where the end of line is just LF every where) but Modified and Re-saved on Windows(where the end of line is inconsistent)? 
    Thanks!
    Mohan

  • Air plugin for dreamweaver breaks application.xml file

    the air plugin for  dreamweaver breaks the application.xml file when the version is  changed from 2.0 to 2.7
    How to fix this?

    Hi Roberto,
    I'm sorry I don't know the answer to this one, but I'll ask around.  Have you checked out the dreamweaver forum?
    Chris

  • File adapter-How to set line break in text file-split record into two lines

    Dear Guru's,
    I have to solve following problem with XML (with mulitiple records) to TEXT file scenario using file adapter. I have to output for ever ONE data record in XML always two identical lines in text file. Second line should have a little bit different mapping in few fields like date,... So I did duplicate fileds in my output structure in mapping and need to know how to set line break in the middle and see half of structure in first line and next structure half in second line
    My output structure in mapping is:
    CASHFLOW
    - INTERFACE
    - GESELLSCHAFT
    - ANWENDUNG
    - PRODUKT
    - VERTRAG
    - BETRAG
    - WAEHRUNG
    - DIRECTION
    - BEWEGUNGSTYP
    - FAELLIGKEIT
    - ZINSFESTSTELLUNG
    - ZAHLUNGSTAG
    - RENDITE
    - INTERFACE2
    - GESELLSCHAFT2
    - ANWENDUNG2
    - PRODUKT2
    - VERTRAG2
    - BETRAG2
    - WAEHRUNG2
    - DIRECTION2
    - BEWEGUNGSTYP2
    - FAELLIGKEIT2
    - ZINSFESTSTELLUNG2
    - ZAHLUNGSTAG2
    - RENDITE2
    Question is how can I set on receiving file adapter in Content Conversion Parameters that fields from first structure half INTERFACE...RENDITE should be outputed in one line and fields from second half of structure INTERFACE2...RENDITE2 should start on second line in final text file.
    I'm getting at the moment one line only and I need to know how can set line break so that second line starting with INTERFACE2(CA)...RENDITE2 will start in new line.
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000",CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    This should be final output:
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000"
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    My file adapter settings:
    RecordsetStructure=CASHFLOW
    CASHFLOW.fieldNames=INTERFACE,GESELLSCHAFT,ANWENDUNG,PRODUKT,VERTRAG,BETRAG,WAEHRUNG,DIRECTION,BEWEGUNGSTYP,FAELLIGKEIT,ZINSFESTSTELLUNG,ZAHLUNGSTAG,RENDITE
    CASHFLOW.fieldSeparator=,
    CASHFLOW.endSeparator='nl'
    CASHFLOW.fieldNames=INTERFACE2,GESELLSCHAFT2,ANWENDUNG2,PRODUKT2,VERTRAG2,BETRAG2,WAEHRUNG2,DIRECTION2,BEWEGUNGSTYP2,FAELLIGKEIT2,ZINSFESTSTELLUNG2,ZAHLUNGSTAG2,RENDITE2
    CASHFLOW.fieldSeparator=,
    It wont help if I add two identical structures in mapping because in output i would see for multiple entries section with first lines only and after that section with second lines only. And CASHFLOW is one part of more complex mapping ...
    (This is final output structure RecordsetStructure=HEADER,CASHFLOW,CONDITION,REFERENCE,CONTRACT - more sections with different data and all these should have duplicate lines at the end)
    Thanks a lot for any help
    Cheers
    Marian
    Edited by: Marian  Luscon on Jul 14, 2009 11:44 AM

    Hi Ivan,
    right, I did test just for sure.
    Putting constant 'nl' into field CASHFLOW-INTERFACE1 didnt help - still getting one line instead two lines.
    CA ,"0100" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,2 ,12 ,2009-01-28 ,2009-01-27 ,2009-01-28 ,"0.0000000" ,'nl' ,"GTP1" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,1 ,10 ,2009-01-27 ,2009-01-27 ,2009-01-27 ,"0.0000000"
    So there is still question. Is there any way (mapping,...) how to output always 2 lines in text file for one record in XML. It always does 1 record in mapping structure = 1 line but we need 2 lines ...
    Example:
    Input: 4 records in XML
    Output: 8 lines in final text file ...
    Thanks to you all guys
    Marian

  • Line break in txt file

    Can someone help me?
    I just wanna make a line break in a txt file...
    I tried it this way
    FileWriter fw = new FileWriter("W:\\write.txt");
    fw.write(string1 + "\n" + string2);
    fw.close();
    I don't know why it doesn't work.
    in the file it apears just a black block, but if i copy it in this text area, theres automaticly a line break
    thx for your support
    Guardian

    Everything has been said, but I thought I'll just make it more clearly :-)
    The thing is:
    Unix use a line break; <or was it vice versa>
    Afterwards someone decided text had to be devided in linebreaks and paragraph;
    That's why you have <p> and <br> in html
    Now line break just means, I'm on the end of a line and i must break but i don't want to
    so please if you can, hold it on the same line when displaying.
    So to keep multiple platform oparability it's a good thing to use both:
    newline character + carriage return = break to other line

  • XI have to break/split XML-File into N times a XML Message

    Hello,
    Can anyone help with this one. I guess this is not an easy exercise but I need to solve it urgently.
    XI gets a XML-file from a system.
    This file has N times a element <XBT>.
    Every time XI gets such a file the number of <XBT> is different.
    XI haves to break this xml into N xml messages according to element ><XBT> in order to send them to Sap sequentially.
    For example the following XML file have to split up into 2 xml files (the elements XBT occurs 2 times)
    How can this be done?
    <mt_BubaBestand>
    <b><XBT></b>
      <Algemeen>
         <Verkooporganisatie>5000</Verkooporganisatie>
         <Distributiekanaal>50</Distributiekanaal>
         <Productgroep>50</Productgroep>
         <Ordernummer>123123</Ordernummer>
         <Verkoopgroep/>
         <Documentdatum>20061207</Documentdatum>
         <Medewerker_nr>e60217</Medewerker_nr>
         <Medewerker_naam>Hermans</Medewerker_naam>
         <CRM_nr/>
         <CIFDedicated/>
         <Klantgroep/>
      </Algemeen>
    <b></XBT></b>
    <b><XBT></b>
      <Algemeen>
         <Verkooporganisatie>5000</Verkooporganisatie>
         <Distributiekanaal>50</Distributiekanaal>
         <Productgroep>50</Productgroep>
         <Ordernummer>123123</Ordernummer>
         <Verkoopgroep/>
         <Documentdatum>20061207</Documentdatum>
         <Medewerker_nr>e60217</Medewerker_nr>
         <Medewerker_naam>Hermans</Medewerker_naam>
         <CRM_nr/>
         <CIFDedicated/>
         <Klantgroep/>
      </Algemeen>
    <b></XBT></b>
    </mt_BubaBestand>

    This is pretty standard procedure if you are posting these messages to R/3.  As was pointed out in the weblogs above, when using IDocs you don't need to do any tricky configuration.  Just make sure that your XML structure is set correctly (ie:  1 to unbounded, etc) to the limits that you want, and XI will automatically loop the mapping process for each instance of the <XBT> item that it detects in the source message.  You mentioned:
    <i>For example the following XML file have to split up into 2 xml files (the elements XBT occurs 2 times)</i>
    Well, you don't actually split it into two XML files per say, XI just processes the source message straight to multiple IDocs using the IDoc adapter.

  • GUI_Download for XML file ?

    Hi Experts,
    I have xml data in an internal table say int_xml_data.
    While i m downloading this data to presenatation server using gui_download m getting an error:
    "The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource 'file:///C:/Vendor File.xml'. Line 1, Position 1
    3C3F786D6C2076657273696F6E3D22312E30223F3E3C57535F56454E444F525F444154413E3C57535F56454E444F525F444154413E3C4C49464E52204461"
    I have used the function like this:-
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                  =
        FILENAME                      = 'C:\Vendor File.xml'
       FILETYPE                      = 'BIN'
      APPEND                        = ' '
      WRITE_FIELD_SEPARATOR         = ' '
      HEADER                        = '00'
      TRUNC_TRAILING_BLANKS         = ' '
      WRITE_LF                      = 'X'
      COL_SELECT                    = ' '
      COL_SELECT_MASK               = ' '
      DAT_MODE                      = ' '
    IMPORTING
      FILELENGTH                    =
      TABLES
        DATA_TAB                      = int_xml_data
    EXCEPTIONS
       FILE_WRITE_ERROR              = 1
       NO_BATCH                      = 2
       GUI_REFUSE_FILETRANSFER       = 3
       INVALID_TYPE                  = 4
       NO_AUTHORITY                  = 5
       UNKNOWN_ERROR                 = 6
       HEADER_NOT_ALLOWED            = 7
       SEPARATOR_NOT_ALLOWED         = 8
       FILESIZE_NOT_ALLOWED          = 9
       HEADER_TOO_LONG               = 10
       DP_ERROR_CREATE               = 11
       DP_ERROR_SEND                 = 12
       DP_ERROR_WRITE                = 13
       UNKNOWN_DP_ERROR              = 14
       ACCESS_DENIED                 = 15
       DP_OUT_OF_MEMORY              = 16
       DISK_FULL                     = 17
       DP_TIMEOUT                    = 18
       FILE_NOT_FOUND                = 19
       DATAPROVIDER_EXCEPTION        = 20
       CONTROL_FLUSH_ERROR           = 21
       OTHERS                        = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    What is the mistake ???
    How can the xml data be downloaded to presentation seerver? ?
    Function works fine for .txt data but not for xml ???

    @ Sandeep:
    I did this only.
    Firstly I converted data into xml using SAP_CONVERT_TO_XML_FORMAT
    the code is:
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
      I_FIELD_SEPERATOR          = ':'
      I_LINE_HEADER              =
      I_FILENAME                  = w_path
      I_APPL_KEEP                = ' '
      I_XML_DOC_NAME              = <w_xml_file>
    IMPORTING
      PE_BIN_FILESIZE            =
        TABLES
          I_TAB_SAP_DATA             = int_final_vendor
       CHANGING
         I_TAB_CONVERTED_DATA        = int_xml_data
       EXCEPTIONS
         CONVERSION_FAILED          = 1
         OTHERS                     = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    After this I am downloading the data using GUI_Download
    Code is
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                  =
        FILENAME                      = w_file
        FILETYPE                      = 'BIN'
      APPEND                        = ' '
      WRITE_FIELD_SEPARATOR         = ' '
      HEADER                        = '00'
      TRUNC_TRAILING_BLANKS         = ' '
      WRITE_LF                      = 'X'
      COL_SELECT                    = ' '
      COL_SELECT_MASK               = ' '
      DAT_MODE                      = ' '
    IMPORTING
      FILELENGTH                    =
      TABLES
        DATA_TAB                      = int_xml_data
    EXCEPTIONS
       FILE_WRITE_ERROR              = 1
       NO_BATCH                      = 2
       GUI_REFUSE_FILETRANSFER       = 3
       INVALID_TYPE                  = 4
       NO_AUTHORITY                  = 5
       UNKNOWN_ERROR                 = 6
       HEADER_NOT_ALLOWED            = 7
       SEPARATOR_NOT_ALLOWED         = 8
       FILESIZE_NOT_ALLOWED          = 9
       HEADER_TOO_LONG               = 10
       DP_ERROR_CREATE               = 11
       DP_ERROR_SEND                 = 12
       DP_ERROR_WRITE                = 13
       UNKNOWN_DP_ERROR              = 14
       ACCESS_DENIED                 = 15
       DP_OUT_OF_MEMORY              = 16
       DISK_FULL                     = 17
       DP_TIMEOUT                    = 18
       FILE_NOT_FOUND                = 19
       DATAPROVIDER_EXCEPTION        = 20
       CONTROL_FLUSH_ERROR           = 21
       OTHERS                        = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    What is the mistake ????

  • Receiver File channel for XML files: with carriage return

    Hi all,
    we are using a receiver FILE channel to generate an XML file that is sent to an external partner.
    The XML file looks good in a parser (IExplorer). But in fact there are not carriage return / line feeds between the XML tags
    of the XML payload in the file.
    Our partner now requires the XML file in a more vertical structure which means: for every tag a separate line (like it is displayed in a parser)
    Does anybody know a more general way to convert to a vertical XML structure (so with carriage return line feed).
    There is one entry in the SDN dealing with this topic but suggesting using an UDF. I think this is a very specific way.
    I don't think it is a good way to change/enhance the message mapping just because of a general formating change.
    Is it better to use an XSLT mapping as a second step in the interface mapping or a JAVA adapter module to convert ?
    any experiences? suggestions? examples?
    Thank you very much
    best regards
    Hans
    examples:
    original by XI receiver FILE adapter
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_batchStatus><type>BS</type><header><message><messageSender>SENDER</messageSender><messageDate>20090723143720</messageDate> ... and so on
    required:
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_batchStatus>
    <type>BS</type>
    <header>
    <message>
    <messageSender>SENDER</messageSender>
    <messageDate>20090723143720</messageDate>
    ... and so on

    >
    Hans Georg Walter wrote:
    > Is it better to use an XSLT mapping as a second step in the interface mapping or a JAVA adapter module to convert ?
    > any experiences? suggestions? examples?
    In such a case, the best is to write an generic XSLT or Java mapping that will attempt to do the pretty printing/formatting of the xml.
    The advantage of a generic one is that you can reuse the same class/jar for many other scenarios.
    so the flow will be as below in your interface mapping;
    1. your specific source to target mapping
    2. the generic formatting class

Maybe you are looking for

  • How to call the crystal report in jsp page

    dear friends i want to run or call the crystal report in jsp page. if u know that can u send sample code for that to my id [email protected]

  • My post disappeared! Down for over a week!

    Wow! my whole post disappeared. Am I talking about a sore subject? Been down for over a week. My issue is that because I am using a usb modem as my internet connection with considerable infrastructure to make it work, support always says its my probl

  • Cover Flow has disappeared!

    hi everyone. ok, So i couldn't run Sharepod with my ipod, so i deleted the 'ArtworkDB' file from my ipod directory (big mistake not backing that file up like usually would) NOW ALL THE ARTWORK ON MY IPOD HAS VANISHED! over 400 hundred albums GONE!!!!

  • Kinect 2 Depth frame - Body data

    Hi, I am new to Kinect 2; I would Like to develop body Measurement using kinect 2 sdk. I came across it requires the depth frame player data to get depth of the each pixel; based on this data i can mesure the body width and height, belly size;  Any o

  • New Mac Network - DHCP Won't assign IP to LaserJet 5M Printer...help?!?

    I just moved office locations and have a newly configured network. My network consists of 2wire 2700hg DSL modem which has a 1000mbit router connnected directly to it (and hardwire network hub distributing from there). There is also a new Time Capsul