Displaying XML content in one line in pdf

Hi,
I am using OBIP for report generation, i am facing a problem regarding to xml content
In XML the content is displaying like
<OmbudsmanAdrress>Shri V. Ramasaamy,
Insurance Ombudsman,
Office of the Insurance Ombudsman,
Fathima Akhtar Court,
4th Floor, 453 (old 312),
Anna Salai, Teynampet,
CHENNAI-600 018,
Fax : 044-24333664,
Email [email protected]</OmbudsmanAdrress>
but i need to show only in one line in pdf.
how can i will get in one line
please suggest me....
Thanks in advance,
Vijay Chunduri.

Finally after a long struggle i got the answer...
Here it is buddies...
<?xdofx:replace(OmbudsmanAdrress,’,\n’ ,',')?>

Similar Messages

  • Problem with displaying XML Content well formatted.

    Hi all,
    I am developing a website which have one functionality to display XML content which is received from some other party.
    I am using TextArea for displaying this XML content on my webpage. As this XML content is not at all formatted it looks very ugly for a human to read.
    I want this XML content to be displayed well formatted, As Mozilla Firefox display it hierarchically and well formatted.
    Kindly give some suggestion for displaying XML well formatted on a webpage.
    Any comments from you people will help me.
    Thanks
    typurohit.

    The following link is a XML-based document. An XSL stylesheet transforms the XML document to HTML in the web browser. Feel free to grab a copy of the stylesheet to use as a guide.
    http://www.masonicartbook.com/production.htm
    Good luck!

  • Displaying the content of one JPanel in an other as a scaled image

    Hi,
    I'd like to display the content of one JPanel scaled in a second JPanel.
    The first JPanel holds a graph that could be edited in this JPanel. But unfortunately the graph is usually to big to have a full overview over the whole graph and is embeded in a JScrollPanel. So the second JPanel should be some kind of an overview window that shows the whole graph scaled to fit to this window and some kind of outline around the current section displayed by the JScrollPanel. How could I do this?
    Many thanks in advance.
    Best,
    Marc.

    Hi,
    I'd like to display the content of one JPanel scaled
    in a second JPanel.
    The first JPanel holds a graph that could be edited
    in this JPanel. But unfortunately the graph is
    usually to big to have a full overview over the whole
    graph and is embeded in a JScrollPanel. So the second
    JPanel should be some kind of an overview window that
    shows the whole graph scaled to fit to this window
    and some kind of outline around the current section
    displayed by the JScrollPanel. How could I do this?
    Many thanks in advance.
    Best,
    Marc.if panel1 is the graph and panel2 is the overview, override the paintComponent method in panel2 with this
    public void paintComponent(Graphics g) {
    Graphics2D g2 = (Graphics2D) g;
    g2.scale(...,...);
    panel1.paint(g2);
    }

  • How to display XML content in a JSP

    Hi,
    can anyone help me in displaying xml content in a JSP?

    I think you want to display value from XML page to the
    JSP.If thats the case you can try out this
    xml...
    <component-profile>
            <property name="parm" value="Hi"/>
    </component-profile>
    jsp...
    <% var=profile.getProperty("parm");%>
    Hope this helps
    gEorgE

  • Displaying xml content in the browser

    Hi,
    In my application i am generating an XML content which i was storing into a file. Now as per the new requirement, this xml content needs to be displayed in the browser. (The way it gets displayed when we double click on an xml file).
    Can some one plz tel me how to do this? I am using the jsp/servlet architechture..? plz help
    Thanx

    Program 1
    import java.io.BufferedInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SendXml extends HttpServlet {
      public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        //get the 'file' parameter
        String fileName = (String) request.getParameter("file");
        if (fileName == null || fileName.equals(""))
          throw new ServletException(
              "Invalid or non-existent file parameter in SendXml servlet.");
        // add the .doc suffix if it doesn't already exist
        if (fileName.indexOf(".xml") == -1)
          fileName = fileName + ".xml";
        String xmlDir = getServletContext().getInitParameter("xml-dir");
        if (xmlDir == null || xmlDir.equals(""))
          throw new ServletException(
              "Invalid or non-existent xmlDir context-param.");
        ServletOutputStream stream = null;
        BufferedInputStream buf = null;
        try {
          stream = response.getOutputStream();
          File xml = new File(xmlDir + "/" + fileName);
          response.setContentType("text/xml");
          response.addHeader("Content-Disposition", "attachment; filename="
              + fileName);
          response.setContentLength((int) xml.length());
          FileInputStream input = new FileInputStream(xml);
          buf = new BufferedInputStream(input);
          int readBytes = 0;
          while ((readBytes = buf.read()) != -1)
            stream.write(readBytes);
        } catch (IOException ioe) {
          throw new ServletException(ioe.getMessage());
        } finally {
          if (stream != null)
            stream.close();
          if (buf != null)
            buf.close();
      public void doPost(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        doGet(request, response);
    Program 2
    import java.io.BufferedInputStream;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLConnection;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class ResourceServlet extends HttpServlet {
      public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        //get web.xml for display by a servlet
        String file = "/WEB-INF/web.xml";
        URL url = null;
        URLConnection urlConn = null;
        PrintWriter out = null;
        BufferedInputStream buf = null;
        try {
          out = response.getWriter();
          url = getServletContext().getResource(file);
          //set response header
          response.setContentType("text/xml");
          urlConn = url.openConnection();
          //establish connection with URL presenting web.xml
          urlConn.connect();
          buf = new BufferedInputStream(urlConn.getInputStream());
          int readBytes = 0;
          while ((readBytes = buf.read()) != -1)
            out.write(readBytes);
        } catch (MalformedURLException mue) {
          throw new ServletException(mue.getMessage());
        } catch (IOException ioe) {
          throw new ServletException(ioe.getMessage());
        } finally {
          if (out != null)
            out.close();
          if (buf != null)
            buf.close();
      public void doPost(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        doGet(request, response);
    }Have fun

  • Scripts : want to display the text in one line

    Dear Friends,
    i want to dispaly the below text in one line,but its displaying in next line.
    ITEM   MATERIAL  DESCRIPTION ORDERQTY  UNIT PricePerUnit NETVALUE
    i am using the following code
    IL           <K>Item,,Material,,Description ,,  Order qty.  ,,Unit   ,,    Price per unit   ,, Net value </>
    Thanks & Regards
    Shaik

    Hello Hussain,
    Remove the TAB Spacing ',,'. Instead u give the Space.
    Reduce the length of fonts.
    These are the ways to display the text in a line.
    If useful reward points.
    Regards,
    Vasanth

  • Display XML content in af:outputText

    Hi
    I need to display a large xml content which is returned as a String in <af:outputText>. I had read it works by setting the property escape of <af:outputText> to TRUE. Its not working. i need to render the raw XML content in my panelgrouplayout . How to go about this??
    Thanks
    Chaya

    try using af :outputFormatted.
    Why do you need to render it in a panelGroupLayout btw ?

  • Safari won't display XML content with an embedded stylesheet

    I'm using Safari 5.0.2 on Windows XP. I cannot get it to display an XML document with an embedded CSS stylesheet. The file in question appears in this ZIP file: http://www.hl7.org/documentcenter/ballots/2011JAN/downloads/CDAR2IG_SDISP_R1_D12011JAN.zip
    That document demonstrates is an attempt to enable display of standardized healthcare content in common web browsers. Can anyone here help?

    I have a separate bug report to Chrome on this one, same general result in display. The file is an XML document, not a CSS style-sheet. It contains an xml-stylesheet processing instruction that has a local URI #hl7-css-for-cda pointing to an element in the XML that contains the CSS stylesheet. That element uses xml:id to identify itself, so it is (according to the W3C) possible for the browser to determine that element as being the target of the URI.
    The problem appears to be that the Display Engine in Safari won't load the content of that URI as a CSS stylesheet.
    When I validate the CSS content in that XML element it returns as being valid CSS, and when I validate the XML using my XML editor, it is both well formed, and valid against the XML Schema appropriate to that file.

  • Displaying XML content in the browser without creating the XML file

    Hi,
    In my web application, i am getting the data from the database and generating an XML file based on that. This file is created, read and its content is displayed in the browser when the user clicks a specific link on the jsp.
    As per the new requirement, i am not supposed to generate the XML file. Instead when the user clicks on the specific link on the jsp, the XML should get displayed in the browser directly without generating the XML file.
    Can someone plz help me in how to do this?
    Moreover, this XML generation application should support multiple clients. Do i need to make my application thread-safe explicitly even though i am using a servlet to do this?
    Please suggest
    Thanx

    Avoid multi post
    http://forum.java.sun.com/thread.jspa?messageID=9858529

  • Report Painter - Display two characteristics on one line in lead column

    I have a requirement to produce a Report Painter report to display values by Cost Centre and Cost Element.
    The requesting user wants to see the Cost Centre AND Cost Element keys displayed on each row of the report, to allow for manipulation in Excel.
    I have no problem grouping Cost Element within Cost Centre or vice-versa, but am not aware of any way of displaying both key values on each row in the lead column (or anywhere else).
    Has anybody done this?

    Hi Robin,
    the request is not unusual. However, report painter does not allow for two key columns or a key column combining two characteristics. You might consider using SAP Query (with table COEP or COSS/COSP for aggregates) if you do not want to resort to developing the report in ABAP.
    Regards
    Nikolas

  • Adf Input Text with formatted xml Content

    Hi,
    I have a requirements where I get an xml content in one line
    as suppose <xml ><a><a1></a1><a2><a2></a><b></b></xml>
    I want this Input text to render it proper fromat like
    <xml >
        <a>
            <a1>
            </a1>
             <a2>
             <a2>
       </a>
       <b>
      </b>
    </xml>I tried to set wrap property to soft
    but it is not affecting
    Please tell me any component that will properly structure the input xml
    How can I do this.

    User, please tell us your jdev version!
    There is no component AFAIK. You may want to try the rich text editor, but if I remember it correct it won't do what you want.
    My solution would be to write a custom converter and format the code in the converter to show it then in the inputText.
    Timo

  • Display blob content as pdf file

    Dear Expert,
    Currently i'm using oracle apex 3.0.1.
    I'm having a problem on displaying blob content (from database table) as pdf file on oracle application express but i'm able to save to download the pdf.
    Below is the procedure that i used to display blob content,
    PROCEDURE lf_html_pdf (pv_image IN VARCHAR2, pv_index IN NUMBER) is
    l_mime VARCHAR2 (255);
    l_length NUMBER;
    l_file_name VARCHAR2 (2000);
    lob_loc BLOB;
    BEGIN
    begin
    selecT OI_BLOB,DBMS_LOB.getlength (OI_BLOB)
    into lob_loc,l_length
    from ord_img
    where oi_tno= pv_image
    and oi_ti='PDF'
    and oi_idx=pv_index;
    exception
    when others then
    null;
    end;
    OWA_UTIL.mime_header (NVL (l_mime, 'application/pdf'), FALSE);
    HTP.p ('Content-length: ' || l_length);
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (lob_loc);
    END lf_html_pdf;
    I get the error message as below when i execute the procedure above;
    Error report:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 356
    ORA-06512: at "SYS.OWA_UTIL", line 415
    ORA-06512: at "HCLABPRO.PKG_PDF", line 220
    ORA-06512: at line 2
    *06502. 00000 - "PL/SQL: numeric or value error%s"*
    I'm appreciated if expert can have me on the problem above?
    Thanks
    From junior

    *Always post code wrapped in <a href=http://wikis.sun.com/display/Forums/Forums+FAQ#ForumsFAQ-Arethereanyusefulformattingoptionsnotshownonthesidebar?"><tt>\...\</tt> tags</a>:*
      PROCEDURE lf_html_pdf (pv_image IN VARCHAR2, pv_index IN NUMBER) is
         l_mime        VARCHAR2 (255);
         l_length      NUMBER;
         l_file_name   VARCHAR2 (2000);
         lob_loc       BLOB;
      BEGIN
          begin
            selecT OI_BLOB,DBMS_LOB.getlength (OI_BLOB)
            into lob_loc,l_length
            from ord_img
            where  oi_tno= pv_image
              and oi_ti='PDF'
              and oi_idx=pv_index;
          exception
                when others then
                null;
            end;
         OWA_UTIL.mime_header (NVL (l_mime, 'application/pdf'), FALSE);
         HTP.p ('Content-length: ' || l_length);
         OWA_UTIL.http_header_close;
         WPG_DOCLOAD.download_file (lob_loc);
      END lf_html_pdf; Start by getting rid of:
          exception
                when others then
                null;and never using it anywhere ever again.
    If you're not actually going to use the <tt>l_mime</tt> and <tt>l_file_name</tt> variables then remove these as well. (Although I really think you should set a filename.)
    >
    Error report:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 356
    ORA-06512: at "SYS.OWA_UTIL", line 415
    ORA-06512: at "HCLABPRO.PKG_PDF", line 220
    ORA-06512: at line 2
    06502. 00000 - "PL/SQL: numeric or value error%s"
    >
    The error stack indicates that the exception is being raised in <tt>HCLABPRO.PKG_PDF</tt>: what is <tt>HCLABPRO.PKG_PDF</tt>? Does this actually have anything to do with the procedure above?
    I get the error message as below when i execute the procedure above;How do you execute it?
    What happens when it's executed without the <tt>when others...</tt> built-in bug?

  • Contents of one network folder won't display - spinning beach ball

    I have an eMac on a network running 10.3.9 which, even though the user is properly authenticated on the network, it will not display the contents of one single folder. All the other folders' contents display perfectly and the user can interact with the server and its' contents without any problems. All the other users on the network can interact with the folder in question without any problems, which tends to lead me back to a problem on this one eMac.
    The folder in question is inside the main share and all the other folders are as well. Again, the user can traverse the directory structure without any problems. She can use any file, read, write, save, change, delete any file without any problems in any folder EXCEPT in this one folder.
    When the user tries to access the folder, the result is the perennial spinning beach ball.
    I've tried all the usual tricks. Cache cleaning, directory repairs, permission rebuilds, prebinding rebuilds, log file maintenance, etc., etc. to no avail. I'd appreciate your thoughts. Thanks.

    Have you tried logging in with any of the other user's credentials from her system?
    Also, have you tried a different user account on her system. (With either her or anyone else's login info for the server.)

  • In MacOSX_Safari v1.2, content are not wrapped in PDF

    Try to stream out the pdf with carriage return between the content, it works for other browsers, except for Safari v1.2, somehow it puts all content in one line without the carriage return. I use "\n" as carriage return. I also try to put "\r" along with "\n", but none of them works for this browser.
    Does anyone know what's the issue? Any hint?
    Thanks.
    Jannie
      Mac OS X (10.4.6)  

    Is this all of the code?  You do not show closing html or body tags. I assume you did not C/P all of the code.
    Gary

  • How to transfer the contents of a line of a table control to second screen?

    Hi,
    I have a table control and I have entered some contents in one line of a table control .
    When i click on this line and then click on the detail button on the screen , it should take me to another screen and whatever I have entered in the table control should be transferred to the second screen .
    Please could anyone help me out with this .
    Regards,
    Sushanth H.S.

    Hi
    U need to get the index of the line of table control by command GET CURSOR:
    PROCESS PAI.
    LOOP AT ITAB.
       MODULE GET_CURSOR.
       MODULE MODIFY_ITAB.
    ENDLOOP.
    MODULE USER_COMMAND.
    Module to pick up the selected line:
    MODULE GET_CURSOR.
      GET CURSOR LINE VN_LINE.
    ENDMODULE.
    Module to transfer the data from table control to internal table:
    MODULE MODIFY_ITAB.
      ITAB-FIELD1 = <FIELD OF TABLE CONTROL>.
      MODIFY ITAB INDEX <TABLE CONTROL>-CURRENT_LINE.
    ENDMODULE.
    U should considere the variable line has the value of the index of the line of table control, so u need to calculate the number of the corresponding line of internal table:
    MODULE USER_COMMAND.
      CASE OK_CODE.
        WHEN 'DETAIL'.
    * Calculate the line of internal table:
           VN_LINE = <TABLE CONTROL>-TOP_LINE + VN_LINE - 1.
    * Read the data
           READ TABLE ITAB INDEX VN_LINE.
    * Transfer the data to the output structure of the new screen
           <STRUCTURE>-FIELD1 = ITAB-FIELD1.
    * Call the new screen
           SET SCREEN <NEW SCREEN>.
           LEAVE SCREEN.
    Max

Maybe you are looking for

  • Search function in ical.

    Doesn't give same results on same calendar on MacBook Air & Imac with same Lion & Ical version on both computers. The two calendars are both synced through same Icloud Account. Searching options selected are the same on both computers to. Searching o

  • Flex 3 DataGrid Cross rollover issue

    Flex 3 DataGrid Control - How can i set cross rollover (Row & Column) in my datagrid ?

  • Using Web Service in BPEL Causes Compile Error

    I am trying to use a document style web service (accepts an org.w3c.dom.Element as a parameter) in a BPEL process. I am using JDeveloper to generate the web service, and to build the BPEL process. When I incorporate the web service as a partnerlink a

  • How to connect to other mac 1000 miles away

    Hello, can anyone telle me how I can connect to my parents mac knowing that they live in the south of France and I live in Brussels (Belgium). I just want to help them when they need it ! Thanks for you feedback and input, Steven

  • How to remove apple logo frozen with loading circle on phone

    i cant remove apple logo i tried to reset phone pushing for ten sec and now it wont do anything just loading circle bar somtimes moves i have it on the charger when i connect to comptuer my computer is unable to find harware its like this for a week