Inserting a new line after each tag of an xml

Hi,
I am having a requirement where i need to insert a newline after each tag<> of an xml. I am sending an xml to target system using JMS adapter and the target system has UNIX as OS.
In unix system if we see the output xml, it will be in a single string as shown
<?xml version="1.0" encoding="ISO-8859-1"?><messages><Field1\><Field2\>.........................</messages>
But the desired output should be in the below format
<?xml version="1.0" encoding="ISO-8859-1"?>
<messages>
<Field1\>
<Field2\>
</messages>
And there should not be any indentation for the xml. It should be in the above format it self.

Hi,
I believe this can be achieved through XSLT or JAVA Mapping.
Please refer to the following link:
XSLT Mapping:
Inserting a new line after each tag of an xml
JAVA Mapping:
In Java Mapping ,all you have to do is to make a code that does a search and replace.
Hope this helps,

Similar Messages

  • Insert of new lines using BDC

    I am trying to insert/default some values from custom transaction using BDC into standard SAP transaction tab as a  new line .
    it works fine when there are NO previous existing lines.
    need to know how to get index of the current line ..& add logic in BDC FM to add new line after that.
    thanks in advance

    If all of your form fields have the same name then it will
    create a comma
    delimited list, which you can loop through. I have some CF
    code to do
    exactly what you want, but not where I am at present. Send me
    an email to
    [email protected] and I will mail it to you.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Simonbullen" <[email protected]> wrote in
    message
    news:e3piv5$9s2$[email protected]..
    > Hi, I have a form with rows of text fields for data
    insertion, is it
    > possible
    > to insert records into my db, but creating a new row for
    each row in my
    > form...?
    > I know I can buy packages to do this, but is there a
    free extension or
    > coding
    > solution please?
    >
    > many thanks in advance, using DMx2004, SQL, CF7
    >

  • Print a line after each constructor

    Would one of you java gods tell me how i can print a line after each constructor that tells me that the constructor has been constructed?
    * Employee.java
    * Created on April 28, 2007, 11:58 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    * @author Pete Berardi
    package edu.ctu.peteberardi.phase3db;
    import java.util.Scanner;
    public abstract class Employee extends Object
        protected String EmpName;
        protected String EmpAddress;
        protected String EmpSsn;
        protected String EmpEmployeeID;
        protected double EmpYearlySalary;
        protected double computePay;
        protected String Constructor;
        /** Creates a new instance of Employee */
        public Employee(String name, String address, String ssn,
                String id, double salary, double pay, String cvariable)
          name = EmpName;
          address = EmpAddress;
          ssn = EmpSsn;
          id = EmpEmployeeID;
          salary = EmpYearlySalary;
          pay = computePay;
        public void setEmpName(String name)
            EmpName = name;
        public String getEmpName()
            return EmpName;
        public void setEmpAdress(String address)
            EmpAddress = address;
        public String getEmpAddress()
            return EmpAddress;
        public void setEmpSsn(String ssn)
             EmpSsn = ssn; 
        public String getEmpSsn()
            return EmpSsn;
        public void setEmpID(String id)
            EmpEmployeeID = id;
        public String getEmployeeID()
            return EmpEmployeeID;
        public void setEmpYearlySalary(double salary)
            EmpYearlySalary = salary;
        public double getEmpYearlySalary()
            return EmpYearlySalary;
        public void setcomputePay(double pay)
            computePay = pay;
        public double computePay()
            return computePay;
          public void setContstructor(String cvariable)
             Constructor = cvariable;
        public String Constructor()
            return Constructor;
       public static void main( String args[])
          System.out.print("Constructor has been constructed");
     

    I do not know why you have declared the class as abstract. Abstract class must contain at least one abstract method.
    In your code, there is no abstract method.
    public Employee(String name, String address, String ssn,
                String id, double salary, double pay, String cvariable)
          name = EmpName;
          address = EmpAddress;
          ssn = EmpSsn;
          id = EmpEmployeeID;
          salary = EmpYearlySalary;
          pay = computePay;
          System.out.println("Constructor created");
         }The above code works only when you instantiate the object for the class. If it is abstract class, it will not work.
    Abstract class cannot be instantiated.

  • How to insert a new line item in VA01/VA02 by using ABAP code?

    Hi Gurus
    i have a very tough requirement. the customer wants to insert a free goods after an item has been populated in VA01/VA02 automatically according to some certain rules. the input material may be a main material of a sales BOM.
    for example. let's suppose there is a material A who has two sub-material B and C which is maintained in a sales BOM via CS01/CS02. when the material A has been input in the line item in VA01/VA02, its quantity input and after the ENTER key has been clicked, another material D may be displayed in a new line as a gift if the condition met.  the condition relates to customer/material/quanity and these information are stored in a Z-table.
    on the other hand, if the material A is only a single material(not a BOM), the gift(material D) will also be filled automatically if the condition met.
    i have already enhance the FM cs_bom_explosion to filfill the requirment for BOM materials. whereas it is very hard to find the enhanment point for the single material.
    so my question is where is the correct place for me to insert the ABAP code, which decides whether the gift should be given or not and furthermore inserts the new line item into XVBAP. i tried to use MV45AFZZ, whereas the data is always inconsistant if a new line has been inserted. it is very strange that there is no temperary internal table storing line item data input in the table controal of VA01/VA02. system reads the line item data , line by line, via a system kernal function call.
    any hints are welcome. thanks

    HI Stephen,
    I have the same prolem. I modified the 5 global tables, but I don't see the new line in the screen.
    Can you help me with some details?
    Thx!
    Mihaela

  • How to insert a new line in MC1H(maintaining formula)

    How to insert a new line in MC1H(maintaining formula)
    Can anybody help me with  the steps

    Hi,
    1.run transaction SCC4 -> press Ctrl+F4 or the button for change ->double click one the row for your client -> on the field Cross Client Object Changes select Changes to the Repository and cross-client Customizing allowed -> SAVE
    2. run MC1H and now you will have access to insert new line in the table
    Regards Vassko!
    Edited by: Vasil Pavlov on Sep 16, 2008 9:51 AM

  • How to insert the new row after current row in RowIterator - Steve Muench

    Hi,
    Our client wants the new row to be added after current row on the front end instead of before current row.
    we were using "new JUActionBinding(this,iterBinding,JUActionBinding.ACTION_CREATE_INSERT_ROW);" this code inserts the new row after current row.
    I tried a lot to insert the new row after current row. Used new JUActionBinding(this,iterBinding,JUActionBinding.ACTION_LAST to move the cursor to last row in rowiterator and the used .ACTION_CREATE_INSERT_ROW but this thing inserts the new row as the second last row.
    Could somebody plesae help ?
    Message was edited by:
    user556161

    I am using JDeveloper 9.0.4.2.0 (Build 1459)

  • Insert a new line - editText _ windows XP

    hi,all.
    When I push only "Enter" key, I want to insert a new line.
    I am using Windows.so, I have to push "Ctrl + Enter" key to the editText field by default.
    It is troublesome...
    So,I thought about the following script.
    But when I push "Enter" key , the cursor returns to the head.
    Will you have something to offer?
        var w = new Window('dialog',"Label",undefined);
        w.minimumSize.height = 250;
        w.minimumSize.width = 250;
        w.myText = w.add('edittext',undefined,"type!", {multiline:true, scrollable:true});
        w.myText.minimumSize.width = 240;
        w.myText.minimumSize.height = 240;
        w.myText.shortcutKey = "Enter";
        w.myText.onShortcutKey = function(){
            w.myText.text+="\r\n";
        w.show();
    Thanks.
    nakamori

    HI,
    You can achieve this by inserting Input query in a Workbook and Creating 2 Buttons for SAVE and EDIT.
    Assign normal Workbook functions to the buttons.
    When Edit button is clicked a new line is displayed.
    Regards,
    Ravi

  • Pages is sending my documents in docx format, but windows unable to open them. They arrive blank or can only be read as a single line at a time. When view prior to sending the document is divided with black lines after each sentence.

    Pages is sending my documents in docx format, but windows unable to open them. They arrive blank or can only be read as a single line at a time. When viewed prior to sending, the document is divided with black lines after each sentence.

    Windows will only be able to open these if you have Word 2007+. Older versions of Word, for example Word 2003 would require a compatibility pack.
    Perhaps you can try 'Saving As' a different file type instead?
    Regards,
    Steve

  • How to Insert a new line in a clob

    hi,
    i want to create reports as multi-line clob data using PL/SQL procedures.
    is there any standard way of inserting a new line when iam generating
    this clob data based on the data i fetch from a different table.
    i short my question is "How to insert a new line in a clob?"
    i tried using the character '\n', but that was of no use.
    thanks in advance
    ramesh

    You could always do a:
    newLine := '
    Since PL/SQL allows a tring to span multiple lines.

  • Need to create a a line after each subtotal-Smartform

    Hi I need to create a uline after each of the sub totals in my smartform.Like if theer are 7 items in the form and for each of the item there are 2-3 sub-items under it , I have calculated the sub totals for each of the item and to distingusih tjem separately i want to create a line after each of my sub totals for the items . How do i create the line after each of the items ?
    Thanks
    Aarav

    Hi Aarav
    Read this wiki.In the 8th step given there,GOTO the text element and give a ULINE there if needed.
    I think since this example is of tabular display you might not need a ULINE there.
    [https://wiki.sdn.sap.com/wiki/display/ABAP/SUBTOTALINSAP+SMARTFORMS]
    This defnitly will solve your problem.
    Regards
    Hareesh

  • How to insert a new line character inside CDATA tag in the source xml data file?

    values for form fields in the xml data file is contained inside CDATA tags which is an Unparsed Format.
    Eg: [CDATA[IBM-01 ~ DSHFSJDSJ ~ FGFGFJ, ~ VA 665665]] delimited by "~" char
    Actual o/p:-
    IBM-01 ~ DSHFSJDSJ ~ FGFGFJ, ~ VA 665665
    Expected o/p is like :-
    IBM-01
    DSHFSJDSJ
    FGFGFJ,
    VA 665665
    live cycle product does not interpret ~ as a newline character. Please suggest which character should be used instead inside CDATA section or if there is any other way to fix this?

    I do not have any problem while using IE's XML parser
    for XML+XSLT merging.That is because IE's parser does not implement XML correctly.
    But when I use JAXP's Transformer object, it does not
    preserve the new lines inside attribute values and
    converts those into white spaces.That is exactly what the XML specifications say should happen.
    >
    ----If you have text that contains newlines, you
    should put it in an element, not in
    ----an attribute.
    That would be my last solution. But I'd really hate
    to change my logic just 'coz JAXP is not capable of
    handling new lines inside attribute values. I may be
    wrong... but If IE can keep those then there has to
    be a way to do the same from server side merging....Sure. Write your own parser with the same bug in it. But you don't have any right to demand that other people supply you with parsers that work incorrectly.

  • Add horizontal line after each record

    I have 10 records seperated by ID. I m using List in SSRS to show data on report. I need to add horizontal line after first record, then after second record till 10 th record. How do we add this line?
    Any help much appreciated.

    Hi SQL Insane,
    Per my understanding that you have add the tablix into the list and group on the "ID", now you want to add an horizontal line between each record which grouped by the ID like below, right?
    If so, please reference to the details information below:
    Select the entire rows and Right click to select the Insert row-Inside Group below to add an inside row group
    Select the new added inside row group and set properties as below to make sure there is only display the black solid line on the bottom just like to add an horizontal line:
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Inserting a new line character

    Hi,
    In a validation routine returning a text message, I want to display all errors found separated by new line characters in the message displayed to the user. I have tried concatenating '\n' and chr(10) at the end of each message, but they do not work.
    Any suggestions, please.
    thanks,
    Peter

    Vikas,
    I tried what you suggested, but it did not have any effect. I put the region in Region Position 1 and also tried Page template Body 1. I looked at the source generated by your example screen after the error and found this:
    <tr>
    <td valign="top" class="t10ContentBody"><table border="0" cellpadding="0" cellspacing="0" summary="">
    <tr><td valign="top"><div class="t10messages"><div class="t10notification">1 error has occurred<ul class="htmldbUlErr"><li>Value must be specified.</li></ul></div></div><table cellpadding="0" cellspacing="0" summary=""><tr>
    <td valign="top"><script type="text/javascript">
    var d=getElementsByClass('t10notification');
    d[0].childNodes[0].nodeValue="";
    </script>
    <BR><BR><BR>The segment generated in my screen looked like:
    <tr>
    <td class="t3PageBody"><div class="t3Messages" align="center"><div class="t3Notification">1 error has occurred<ul class="htmldbUlErr"><li>Line 3 Resolution Date
    is missing<br></li></ul></div> </div><script type="text/javascript">
    var d=getElementsByClass('t3notification');
    d[0].childNodes[0].nodeValue="";</script>
    So it looks similar but the effect is not the same. Unfortunately, I am not an html/javascript expert so the solution is not obvious to me.
    thanks,
    Peter

  • Text Area Dialog Could not insert a new line?

    Hi,
    I've just downloaded a new Oracle SQL Developer (formerly known as project raptor) and have tested-drive this software. I found some dissappointed thing there:
    - I would like to insert a long string (several paragraphs) in the data grid editor directly and after I commit the connection, sqldeveloper stripped all my new line (\n)! Is this normal or I've done a mistake here? The datatype of my column is varchar2. I've also tried if the datatype is clob, but the result is the same.
    - I dream someday sqldeveloper's data grid editor can show calendar dialog if the column type is DATE just like sqldetective does.
    thanks for any suggestion
    regrads,
    fox

    - I would like to insert a long string (several
    paragraphs) in the data grid editor directly and
    after I commit the connection, sqldeveloper stripped
    all my new line (\n)! Is this normal or I've done a
    mistake here? The datatype of my column is varchar2.
    I've also tried if the datatype is clob, but the
    result is the same.Yes, that's a bug. The fix would come soon with the first patch release.
    - I dream someday sqldeveloper's data grid editor
    can show calendar dialog if the column type is DATE
    just like sqldetective does.Sure.

  • Using dbms_lob append to insert text how do you insert a new line inbetween

    DBMS_LOB.APPEND (P_TEXT,'* Operator Phone,');
    ---- inbetween I need to insert new I am using DBMS_LOB.APPEND (P_TEXT,CHR(10)); IS there amy better method?
    DBMS_LOB.APPEND (P_TEXT,'* Operator Email Address,');

    Sorry if the question was not clear ---
    Lets say in the folowing example every write append needs to start on a new line followed by text. How do we do that?
    Do we add another writeappend(cvar,22, chr(10)); inbetween?
    dbms_lob.writeappend(cvar, 19, '<root><book><title>');
    dbms_lob.writeappend(cvar, length(r.title), r.title);
    dbms_lob.writeappend(cvar, 14, '</title><desc>');
    dbms_lob.writeappend(cvar, length(r.description), r.description);
    dbms_lob.writeappend(cvar, 27, '</desc></book><author_name>');
    dbms_lob.writeappend(cvar, length(r.author_name), r.author_name);
    dbms_lob.writeappend(cvar, 21, '</author_name></root>');
    Edited by: user521218 on May 7, 2009 12:34 PM

Maybe you are looking for