Single line break

I want to give line break with <br> tag.
but since i cannot use single tags i use empty element such as
..which is not rendered correctly with Netscape..
can any one help me by giving me clue as to how to insert break via xsl and which can be correctly rendered by both browsers..
raju

I want to insert space in between br and forward slash..
above infact i left a space..it is not working!!
Can i some how have line break tag with space in between br and forward slash!
Thanks for the other tip!!
Raju
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
is the correct way in your stylesheet.
Make sure you're using the:
[b]void processXSL(xsl,xml,PrintWriter)
api, and not the combination of:
DocumentFragment processXSL(xsl,xml)
frag.print(PrintWriter)
Only the former allows the XSLT processor to do its serialization magic for the HTML output mode.<HR></BLOCKQUOTE>
null

Similar Messages

  • How to break mult-line memo(blob) field to single line text fields

    CRXI MSSQL
    I have a Memo field with variable numbers of lines.  How can I recognize end-of-line & break into seperate text field for each line?

    Hi James, 
    I'd recommend breaking it up in the database instead.  Create one field for each line, set each line to 30 characters and truncate after that.  Now you can have each line as a field in Crystal.  Drop them on and suppress them if they are empty. 
    Not pretty but it will work. 
    Good luck,
    Brian

  • Line Breaks missing in captions from other programs...

    I've spent the last few hours searching around, and I've been unable to find any solution to a weird thing I noticed.
    I've recently purchased LR 3.4.1 and when I imported a handful of older pics that had had the captions set using Bridge, the line breaks were now gone.
    I then went to Bridge and tested it, and sure enough, it can read line breaks from LR, but the opposite doesn't seem to be true. As part of my work, I get a bunch of photos that other photogs have shot and added captions to via Bridge, but I can't seem to find any check box or setting on how to get LR to read the line breaks.
    Any one have any advice on how to get LR to read line breaks from other programs? I'd hate to have to go through and re-caption each and every single photo, especially when adding the older ones into LR to use it as a DAM.
    Thanks!

    This is a long-standing, annoying bug in Windows LR that has been acknowledged by Adobe:
    http://feedback.photoshop.com/photoshop_family/topics/newline_bug_in_caption_text
    Please go to the feedback site and vote for that issue to get fixed.
    It is just a display problem in LR -- the line breaks in the metadata are preserved, and if you enter line breaks in the metadata, they are preserved too.

  • Invoice document posting in single line

    Hi,
    We will be having multiple goods receipts on purchase order of single line item but vendor will give single invoice only with respect to all goods receipts posted. In MIRO screen, system show the invoice line items for each goods receipt, but we will get invoice clubbing all receipts. So there will not be any break up.
    This we can overcome with out flagging GR based IV in PO, but it we don't want that way.
    Please advice is there anyway we can handle it.
    Best Regards

    Why do you care about break up as long as the total amount of invoice is match with systems.
    suppose oyu have three GR and the total is 500
    same you got in invoice then you are fine.

  • How to handle line break embeded inside CSV column

    Hi there,
    I am under the pressure to make it work. I already put this question on APEX forum, but on second thought, I think it relates more to PL/SQL rather than APEX since APEX 4.1 already have utility to handle CSV Upload.
    If you read it already in APEX forum, please ignore.
    I am sorry for that. Thanks for reading.
    I need to develop an app that allows user to upload CSV file to a interface table.
    The APEX version at my workplace is 4.0.2.
    I used the code from
    http://dbswh.webhop.net/htmldb/f?p=BLOG:READ:0::::ARTICLE:11000346061523
    It all works well till recently I find out
    If a column in a CSV file cotain a line break (or new line) e.g. (The tester copy and paste this text which has line break into a column in a spreadsheet)
    This is the first sentence.
    This is the second sentence.
    It will break the “This is the second sentence”. To a new column.
    The contents of the CSV viewed in Notepad look as below
    Assessment Date,Scheduled Date,Assessment Provider,Assessor Name,Court,First Name,Middle Name,Last Name,PRN Person Record Number,NHI Number,Defendant Attended Y/N,Is Dependent Y/N,Notes,Primary Ethnicity,"Ethnicity Other, please specify",Gender,Currently in Treatment Y/N,Substance of Concern 5,Other Substance Specified
    22/09/2012,,Provider Co Name,Warren Edgley,Wellington,,,Salty,2545554,dgsdf,ergerg,,"This is the first sentence.
    This is the second sentence.",Japanese,,Female,b,,
    Here is the code from the CSV UTIL, please help me to find out how can I replace the line break to a space so that the uploading process is correct.
      CREATE OR REPLACE PACKAGE BODY "CSV_UTIL"
    AS
         --strip the beginning and the end quotes, then replace double quotation with single
       FUNCTION de_quote (p_str IN VARCHAR2, p_enc_by IN VARCHAR2)
          RETURN VARCHAR2
       IS
       v_str VARCHAR2(32767) := p_str;
       BEGIN
          IF (p_enc_by IS NULL)
          THEN
             RETURN p_str;
          ELSE
            IF SUBSTR(p_str,-1) = p_enc_by THEN
               v_str := SUBSTR(p_str,1,LENGTH(p_str)-1);
            END IF;
            IF SUBSTR(p_str,1,1) = p_enc_by THEN
               v_str := SUBSTR(v_str,2);
            END IF; 
            RETURN REPLACE (v_str,
                             p_enc_by || p_enc_by,
                             p_enc_by
          END IF;
       END de_quote;
       PROCEDURE parse (p_str IN VARCHAR2, p_enc_by IN VARCHAR2, p_sep IN VARCHAR2)
       IS
          l_n          NUMBER   DEFAULT 1;
          l_in_quote   BOOLEAN  DEFAULT FALSE;
          l_ch         NCHAR (1);
          l_len        NUMBER   DEFAULT NVL (LENGTH (p_str), 0);
       BEGIN
          IF (l_len = 0)
          THEN
             RETURN;
          END IF;
          g_words := g_empty;
          g_words (1) := NULL;
          FOR i IN 1 .. l_len
          LOOP
             l_ch := SUBSTR (p_str, i, 1);
             IF (l_ch = p_enc_by)
             THEN
                l_in_quote := NOT l_in_quote;
             END IF;
             IF (l_ch = p_sep AND NOT l_in_quote)
             THEN
                l_n := l_n + 1;
                g_words (l_n) := NULL;
             ELSE
                g_words (l_n) := g_words (l_n) || l_ch;
             END IF;
          END LOOP;
          g_words (l_n) := de_quote (g_words (l_n), CHR(10));
          g_words (l_n) := de_quote (g_words (l_n), CHR(13));
          FOR i IN 1 .. l_n
          LOOP
             g_words (i) := de_quote (g_words (i), p_enc_by);
          END LOOP;
       END parse;
    Author: Oleg Lihvoinen
    Company: DbSWH
    Changes:
    10.02.2011, There was a miscalculation of the file line last position in case it is the end of file
       PROCEDURE upload (p_file_name VARCHAR2, p_collection_name VARCHAR2, p_enc_by IN VARCHAR2, p_sep_by IN VARCHAR2, p_rows NUMBER)
       IS
          v_blob_data    BLOB;
          v_clob_data    CLOB;
          v_clob_len     NUMBER;
          v_position     NUMBER;
          v_char         NCHAR (1);
          c_chunk_len    NUMBER           := 1;
          v_line         VARCHAR2 (32767) := NULL;
          v_data_array   vcarray;
          v_rows         NUMBER           := 0;
          n_seq          NUMBER           := 1;
          dest_offset    NUMBER           := 1;
          src_offset     NUMBER           := 1;
          amount         INTEGER          := DBMS_LOB.lobmaxsize;
          blob_csid      NUMBER           := DBMS_LOB.default_csid;
          lang_ctx       INTEGER          := DBMS_LOB.default_lang_ctx;
          warning        INTEGER;
          l_sep          VARCHAR2(100)    := CASE WHEN p_sep_by = '\t' THEN chr(9) ELSE p_sep_by END;
       BEGIN
          htmldb_collection.create_or_truncate_collection
                                          (p_collection_name      => p_collection_name);
          -- Read blob from wwv_flow_files
          SELECT blob_content
            INTO v_blob_data
            FROM wwv_flow_files
           WHERE NAME = p_file_name;
          v_position := 1;
          DBMS_LOB.createtemporary (lob_loc      => v_clob_data,
                                    CACHE        => TRUE,
                                    dur          => DBMS_LOB.SESSION
          DBMS_LOB.converttoclob (v_clob_data,
                                  v_blob_data,
                                  amount,
                                  dest_offset,
                                  src_offset,
                                  blob_csid,
                                  lang_ctx,
                                  warning
          v_clob_len := DBMS_LOB.getlength (v_clob_data);
          IF v_clob_len = 0 THEN
             RETURN;
          END IF;
          WHILE (v_position <= v_clob_len + 1)
          LOOP
             v_char := DBMS_LOB.SUBSTR (v_clob_data, c_chunk_len, v_position);
             v_line := v_line || v_char;
             v_position := v_position + c_chunk_len;
             -- When the whole line is retrieved and not end of file or end of file
             IF v_char = CHR (10) AND v_position < v_clob_len OR v_position = v_clob_len + 1
             THEN
                parse (p_str => v_line, p_enc_by => p_enc_by, p_sep => l_sep);
                v_data_array := g_words;
                FOR i IN 1..g_words.count LOOP
                   IF i <= 50 THEN
                      v_data_array(i) := g_words(i);
                   ELSE
                      exit;
                   END IF;
                END LOOP;
                FOR i IN g_words.count + 1..50 LOOP
                   v_data_array(i) := null;
                END LOOP;           
                v_rows := v_rows + 1;
                -- exit if uploaded specified number of rows
                IF p_rows IS NOT NULL AND v_rows > p_rows THEN
                   EXIT;
                END IF;
                -- Store data to collection
                n_seq :=
                   htmldb_collection.add_member
                                         (p_collection_name      => p_collection_name,
                                          p_c001                 => v_data_array
                                                                               (1),
                                          p_c002                 => v_data_array
                                                                               (2),
                                          p_c003                 => v_data_array
                                                                               (3),
                                          p_c004                 => v_data_array
                                                                               (4),
                                          p_c005                 => v_data_array
                                                                               (5),
                                          p_c006                 => v_data_array
                                                                               (6),
                                          p_c007                 => v_data_array
                                                                               (7),
                                          p_c008                 => v_data_array
                                                                               (8),
                                          p_c009                 => v_data_array
                                                                               (9),
                                          p_c010                 => v_data_array
                                                                               (10),
                                          p_c011                 => v_data_array
                                                                               (11),
                                          p_c012                 => v_data_array
                                                                               (12),
                                          p_c013                 => v_data_array
                                                                               (13),
                                          p_c014                 => v_data_array
                                                                               (14),
                                          p_c015                 => v_data_array
                                                                               (15),
                                          p_c016                 => v_data_array
                                                                               (16),
                                          p_c017                 => v_data_array
                                                                               (17),
                                          p_c018                 => v_data_array
                                                                               (18),
                                          p_c019                 => v_data_array
                                                                               (19),
                                          p_c020                 => v_data_array
                                                                               (20),
                                          p_c021                 => v_data_array
                                                                               (21),
                                          p_c022                 => v_data_array
                                                                               (22),
                                          p_c023                 => v_data_array
                                                                               (23),
                                          p_c024                 => v_data_array
                                                                               (24),
                                          p_c025                 => v_data_array
                                                                               (25),
                                          p_c026                 => v_data_array
                                                                               (26),
                                          p_c027                 => v_data_array
                                                                               (27),
                                          p_c028                 => v_data_array
                                                                               (28),
                                          p_c029                 => v_data_array
                                                                               (29),
                                          p_c030                 => v_data_array
                                                                               (30),
                                          p_c031                 => v_data_array
                                                                               (31),
                                          p_c032                 => v_data_array
                                                                               (32),
                                          p_c033                 => v_data_array
                                                                               (33),
                                          p_c034                 => v_data_array
                                                                               (34),
                                          p_c035                 => v_data_array
                                                                               (35),
                                          p_c036                 => v_data_array
                                                                               (36),
                                          p_c037                 => v_data_array
                                                                               (37),
                                          p_c038                 => v_data_array
                                                                               (38),
                                          p_c039                 => v_data_array
                                                                               (39),
                                          p_c040                 => v_data_array
                                                                               (40),
                                          p_c041                 => v_data_array
                                                                               (41),
                                          p_c042                 => v_data_array
                                                                               (42),
                                          p_c043                 => v_data_array
                                                                               (43),
                                          p_c044                 => v_data_array
                                                                               (44),
                                          p_c045                 => v_data_array
                                                                               (45),
                                          p_c046                 => v_data_array
                                                                               (46),
                                          p_c047                 => v_data_array
                                                                               (47),
                                          p_c048                 => v_data_array
                                                                               (48),
                                          p_c049                 => v_data_array
                                                                               (49),
                                          p_c050                 => v_data_array
                                                                               (50)                                                                          
                -- Clear the line
                v_line := NULL;
             END IF;
          END LOOP;
       END;
    END;In my apps, I save these straight into a table rather than an APEX collection because the number of columns can be longer than 50.
    I want to find out how can replace these line break inside a column to a space.
    If any one has any ideas, please let me know.
    Thanks a lot in advance.
    Ann

    Ann586341 wrote:
    I think the code split the whole thing by this line
    -- When the whole line is retrieved and not end of file or end of file
    IF v_char = CHR (10) AND v_position < v_clob_len OR v_position = v_clob_len + 1
    THEN
    Yes, exactly. That piece of code believes all CHR(10) occurences are record delimiters.
    It is not smart enough to recognize that a CHR(10) within quotation marks are part of the data.
    Optimally a solution should keep the CHR(10) rather than replacing with spaces, but that will be a bigger rewrite of the UTL_CSV code ;-)
    If you are happy with replacing with spaces, a "simple" solution could be something like:
    Declare a boolean variable in upload procedure:
    v_within_text_column   boolean := false;And use it like this:
          WHILE (v_position <= v_clob_len + 1)
          LOOP
             v_char := DBMS_LOB.SUBSTR (v_clob_data, c_chunk_len, v_position);
             IF v_char = '"' THEN
               v_within_text_column := NOT v_within_text_column;
             ELSIF v_char = CHR(10) AND v_within_text_column THEN
               v_char := ' ';
             END IF;
             v_line := v_line || v_char;
             v_position := v_position + c_chunk_len;
             -- When the whole line is retrieved and not end of file or end of file
             IF v_char = CHR (10) AND v_position < v_clob_len OR v_position = v_clob_len + 1
             THEN
               v_within_text_column := false; -- To be safe always set this on "true" linebreaks
    {code}
    +(This is untested code just written here in the text editor.)+
    It should work by toggling a flag whether you are "within" the quotes or not and then replacing CHR(10) with a space if you are within a text column.
    This way we avoid having to go through the clob more than once (it is enough that this code walks the clob one character at a time...)
    It will not handle if the clob contains situations like:
    {code}
    abc,123,"This is a text with a quote from a man who said \"To Be,
    or Not To Be\" some hundred years ago",123,xyz
    {code}
    Escaped quotes would need separate attention ;-)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Line break in pl/sql block

    Here's my code, which indeed, may be cumbersome, but works:
    declare
    v_id NUMBER;
    v_iso VARCHAR2(30);
    v_title VARCHAR2(60);
    v_approval_req VARCHAR2(10);
    v_approved VARCHAR2(10);
    v_job_desc VARCHAR2(60);
    v_user VARCHAR2(30);
    v_get_user VARCHAR2(60) := :P101_USERNAME;
    v_get_user2 VARCHAR2(60) := :P101_USERNAME;
    v_num_docs NUMBER;
    v_num_rejected NUMBER;
    v_count NUMBER := 0;
    BEGIN
    CASE v_get_user
    WHEN :P101_USERNAME THEN
    SELECT COUNT(*) into v_num_docs
    FROM doc_info, sh_job_description, sh_employees
    WHERE doc_info.owner = sh_job_description.job_desc
    and sh_job_description.job_desc_id = sh_employees.job_desc_id
    and UPPER(doc_info.approval_req) = 'YES'
    and (doc_info.approved is null
    or UPPER(doc_info.approved) = 'NO')
    and sh_employees.user_name = :P101_USERNAME
    and sh_employees.user_name <> 'SH_LOCAL';
    if v_num_docs  > 0  then
    htp.bold('You have '||v_num_docs||' document(s) to approve.  Please click on the Approve Documents button below to do so.');
    end if;
    END CASE;
    CASE v_get_USER2
    WHEN :P101_USERNAME THEN
    SELECT COUNT(*) into v_num_rejected
    FROM doc_info, sh_job_description, sh_employees
    WHERE doc_info.owner = sh_job_description.job_desc
    and sh_job_description.job_desc_id = sh_employees.job_desc_id
    and UPPER(doc_info.approval_req) = 'YES'
    and UPPER(doc_info.approved) = 'REJECTED'
    and sh_employees.user_name = :P101_USERNAME
    and sh_employees.user_name <> 'SH_LOCAL';
    if v_num_rejected  > 0  then 
    htp.bold('You have '||v_num_rejected ||' rejected document(s) that have had updates made per your request.  Please click on the Approve Documents button below to review the changes, then approve if all changes are accepted.');
    end if;
    END CASE;
    exception when others then null;
    END;Here's the output:
    You have 4 document(s) to approve. Please click on the Approve Documents button below to do so. *\n*You have 1 rejected document(s) that have had updates made per your request. Please click on the Approve Documents button below to review the changes, then approve if all changes are accepted. I have entered a bold /n where I need a line break. Silly, but I've tried many combos of \n and the break with a br and this < and this > (I can't get the real thing to post), concatenating and not, but haven't come up with it.
    Off to lunch now, back in an hour.
    TIA!!!!!

    userRRRYB wrote:
    Here's my codeFrom where? APEX version? Region? Process? Example on apex.oracle.com?
    Fixed. I split it up into two different items, created a region for each, and placed the regions in position 1.Sounds like a lot of extra work.
    I have entered a bold /n where I need a line break. Silly, but I've tried many combos of \n and the break with a br and this < and this > (I can't get the real thing to post), concatenating and not, but haven't come up with it.
    How about instead of the \n, trying a chr(10) and possibly adding a chr(13)?
    I've tried your exampleand htp.p(chr(13)); and suggestions?The HTML specification instructs user agents to collapse white space characters, so however many spaces, tabs, new lines, or carriage returns you add, using whatever notation, only a single space will actually be displayed.
    >
    htp.bold('<p>You have '||v_num_docs||' document(s) to approve.  Please click on the Approve Documents button below to do so.</p>');
    htp.bold('<p>You have '||v_num_rejected ||' rejected document(s) that have had updates made per your request.  Please click on the Approve Documents button below to review the changes, then approve if all changes are accepted.</p>');It's also specified that inline elements can't contain block-level elements. <tt>b</tt> (as generated by <tt>htp.bold</tt>) is an inline element, while <tt>p</tt></a> is block-level.
    In 2011 don't use any <tt>htf/htp</tt> element methods: the HTML generated by these packages is based on an archaic, unadopted HTML version and produces mark-up that is not valid for the XHTML DOCTYPEs used in APEX 4.0 themes. APEX itself stopped using them years ago.
    Not knowing where in the page this information is intended to display, it's always safer to assume there is no open block-level container and provide one (such as <tt>div</tt> or <tt>p</tt>) in the emitted mark-up. Does
    htp.p('<p>You have '||v_num_docs||' document(s) to approve.  Please click on the Approve Documents button below to do so.</p>');
    htp.p('<p>You have '||v_num_rejected ||' rejected document(s) that have had updates made per your request.  Please click on the Approve Documents button below to review the changes, then approve if all changes are accepted.</p>');produce the required layout?
    exception when others then null;Disaster waiting to happen.
    http://tkyte.blogspot.com/2006/08/ouch-that-hurts.html
    http://tkyte.blogspot.com/2007/03/dreaded-others-then-null-strikes-again.html
    http://tkyte.blogspot.com/2008/01/why-do-people-do-this.html
    http://tkyte.blogspot.com/2008/06/when-others-then-null-redux.html

  • Sender File Adapter Problem when text document is a single line.

    Hi All,
    I have posted this question earlier too. But did not get a proper answer.
    I am using File adapter to fetch data from a file system.
    My input data is: AA123BB45678AA345BB78564.
    It is just reading the first segment i.e.AA123 and not reading the remaining.
    How can I configure my Sender File adapter to pick this pattern of data? It works fine if I have line break after each record that is if the input is as below.
    AA123
    BB45678
    AA345
    BB78564
    In the above there is a Line break after each segment. So File adapter picks it fine.
    I have also tried using xml.A.endSeparator equals to blank in the module configuration. But it does not work either.
    Can anyone throw some light to this?

    Abhi
    I tried a different approach to send your file data In..
    You can get each line in the source structure in separate row as
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:SingleRowDT xmlns:ns="http://xxxxx.com/xi/pocs/sriram">
    - <Recordset>
    - <row>
      <rowElt>AA123BB45678AA345BB78564</rowElt>
      </row>
    - <row>
      <rowElt>AA123BB45678AA345BB78564AA123BB45678AA345BB78564</rowElt>
      </row>
    - <row>
      <rowElt>AA123BB45678AA345BB78564AA123BB45678AA345BB78564AA123BB45678AA345BB78564</rowElt>
      </row>
      </Recordset>
    Now you can use a suitable mapping logic to split the individual records into the 2 field structure as expected in the target..
    Trying your way would be a limitation on file adapter I think..Let me know if this helps..I can give you the content conversion config for this model..
    its simply
    RecordSet - Leave it empty
    RecordSet Seq -  Row, *
    Recordsets/msg - *
    row.fieldSeparator - 'nl'
    row.endSeparator - 'nl'
    row.fieldNames - 'rowElt
    ..So each line will be pulled into a single Row in the source structure and then u can apply a specific mapping to split into 2 fields for your target
    Regards
    Sriram V.
    Regards
    Sriram V.

  • Line breaks in Word document

    Hello,
    I am running into an issue when I open a Word document in Pages.  Line breaks are being converted into "  Did not happen in previous versions of Pages (I am on 5.1).  Same thing happens when I open a ppt in Keynote - so could be a Microsoft issue.
    Please help

    'Course it's all custom scripts, written for and tailored to each individual workflow. I even manage two of those workflows at the office, for two distinctly different publishing trajectories, each with very different needs, and thus very different scripts. Only the very basic processing of files is the same, but after that they diverge real fast, and thus I have to maintain two different sets of scripts.
    There is no single workflow tht "works for everyone", and there certainly is not a single script that does everything you imagine it could do.

  • Line Break in Chart Title??

    Hi! Does anyone know how to make a line break in the title of a chart? For some reason, just pressing return or any combination of return with option, control, shift, etc. does not seem to be working... the title is really long to be on a single line and I'm not able to change the size either.

    Hi kp,
    True for Category titles, which are taken from a header column (see examples— Cat 1 through Cat 4 on table and chart below), but not for the Chart title, which displays an option return as a space, and whose box extends horizontally to accommodate the whole title in a single line, even when that line extends beyond the screen/page boundary (see example on chart).
    Table names, when shown, are carried in a box that expands only to the width of the table to which they belong, which led to the example above the chart:
    For the table example, there are two tables,
    "Table with...title" contains two columns, and is placed behind "Table 1", the table containing the data. Only the first table has the Show title box checked.
    Just a parlour trick, though—no advantage I can see to using this method of displaying a long table name over using a  text box, as suggested earlier by Jerry.
    I can see where your suggestion regarding category names could have some merit, though. Its disadvantage is in doubling the height of the rows from which those names are grabbed.
    Regards,
    Barry

  • How to format generated XML using XMLELEMENT() my output is coming in a single line i want it to be in a XML format

    hi I am having problem in formatting XML file which I generated with xmlelement() when I execute it gives me putput in a single line
    is there any way that I got my output as a XML file HAS......

    That is expected behavior. PRETTY print(ing) is only needed for humans. XML Parsers don't need the XML to be pretty printed. If you open the XML file in a browser like Windows Explorer or Firefox, the browser will pretty print the output for you.
    In all, the "single line" output is done because of PERFORMANCE reasons (lack of unneeded end of line and CTRL line breaks etc)
    SELECT xmlelement("Employee Name", dummy) as "XML RESULT"
    FROM DUAL;
    <Employee Name>X</Employee Name>
    SELECT xmlelement("Employee Name", xmlelement("SurName", dummy)
                                     , xmlelement("LastName", dummy)
                     ) as "XML RESULT"
    FROM DUAL;
    <Employee Name><SurName>X</SurName><LastName>X</LastName></Employee Name>
    XMLSERIALIZE can pretty print the output if needed via INDENTation
    SELECT XMLSERIALIZE(CONTENT xmlelement("Employee Name", xmlelement("SurName", dummy), xmlelement("LastName", dummy)) as CLOB indent SIZE=1 )
    FROM DUAL;
    <Employee Name>
         <SurName>X</SurName>
         <LastName>X</LastName>
    </Employee Name>

  • PBDOM : Exporting to XML file gives a single line

    I've been starting developing with PowerBuilder 12.5 a few weeks ago. I had to write some XML files, so I got familiar with the PBDOM library.
    I can build a lot of different things, it's very nice, but one thing still bothers me :
    In the output file, the whole XML is written on a single line.
    I use the SaveDocument function.
    For example, here is some code :
    PBDOM_Document doc
    PBDOM_Element noderoot, node1, node11, node12
    doc = CREATE PBDOM_Document
    doc.NewDocument("NodeRoot")
    noderoot = doc.GetRootElement()
    node1 = CREATE PBDOM_Element
    node1.SetName("Node1")
    noderoot.AddContent(node1)
    node1.SetAttribute("Attr", "AttrValue")
    node11 = CREATE PBDOM_Element
    node11.SetName("Node11")
    node11.AddContent("Here is a value")
    node1.AddContent(node11)
    node12 = CREATE PBDOM_ELEMENT
    node12.SetName("Node12")
    node12.AddContent("Here is another value")
    node1.AddContent(node12)
    doc.SaveDocument("myDoc.xml")
    Here is the result when I open it with notepad++
    <NodeRoot><Node1 Attr="AttrValue"><Node11>Here is a value</Node11><Node12>Here is another value</Node12></Node1></NodeRoot>
    Whereas I wanted :
    <NodeRoot> <Node1 Attr="AttrValue"> <Node11>Here is a value</Node11> <Node12>Here is another value</Node12> </Node1> </NodeRoot>
    With the notepad++ XML tools plugin, I can use the "pretty print" function to get this nice representation. But I would like my file to be formatted this way from the beginning. I noticed that the "line ending" was set to UNIX format (indicator on bottom right of the window), but I'm working on Windows. When I use the menu to convert it to Windows format (CR+LF), it changes this indicator, but the code stays on one single line.
    Is there a way to tell PBDOM to export the XML file with a nice output ?
    Thank you !
    Notes :
    - Opening the XML file with Internet Explorer or Google Chrome gives me a nice vizualisation, with indentation, line breaks...
    - Adding a <?xml version="1.0" encoding="ISO-8859-1" ?> does not help (I've been doing it while exporting some more complex files, but I still get the output on one line...)

    Here is a very simple powerbuilder example. It uses MSXML instead of PBDOM. See my comments for hints how to use it with PBDOM.
    oleobject lole_dom, lole_root, lole_element1, lole_element11, lole_element12
    oleobject lole_Writer, lole_saxreader
    string ls_result
    // build DOM (you don't need this if you use PBDOM)
    lole_dom = create oleobject
    lole_dom.ConnectToNewObject ("Msxml2.DOMDocument")
    lole_root = lole_dom.CreateElement ("NodeRoot")
    lole_dom.documentElement = lole_root
    lole_element1 = lole_dom.CreateElement("Node1")
    lole_root.AppendChild(lole_element1)
    lole_element1.SetAttribute("Attr", "AttrValue")
    lole_element11 = lole_dom.CreateElement("Node11")
    lole_element11.AppendChild (lole_dom.CreateTextNode("Here is a value"))
    lole_element1.AppendChild(lole_element11)
    lole_element12 = lole_dom.CreateElement("Node12")
    lole_element12.AppendChild (lole_dom.CreateTextNode("Here is another value"))
    lole_element1.AppendChild(lole_element12)
    // this saves the DOM without formatting
    //lole_dom.save ("d:\testxml.xml")
    // this part is for formating
    lole_Writer = create oleobject
    lole_saxreader = create oleobject
    lole_Writer.ConnectToNewObject ("MSXML2.MXXMLWriter")
    lole_saxreader.ConnectToNewObject ("MSXML2.SAXXMLReader")
    lole_Writer.omitXMLDeclaration = True
    lole_Writer.indent = True
    lole_saxreader.contentHandler = lole_Writer
    // instead of DOM you can also put a XML string to parser: lole_saxreader.parse ("<node>...</node>")
    // so you can also use the PBDOM output directly
    lole_saxreader.parse (lole_dom)
    // here is your formatted output
    ls_Result = lole_Writer.output
    MessageBox ("", ls_result)
    lole_writer.Disconnectobject( )
    lole_saxreader.Disconnectobject( )
    lole_dom.Disconnectobject( )
    DESTROY lole_writer
    DESTROY lole_saxreader
    DESTROY lole_dom

  • How to confine a string of text to a single line?

    My document contains some mathematical expressions which are far easier to read when on a single line versus split to two lines. Eg,
    2+2=4 is good
    2+
    2=4 is bad
    One solution is manually entered line breaks but that interrupts text flow (ie, entering text later will ruin the spacing).
    Any ideas?

    This shouldn't happen — and doesn't in Pages '08. Let Apple know via Menu>Pages>Provide Pages Feedback. This is the second report of this in the last week.
    Walt

  • Text frame only shows a single line / always overset

    I have an InDesign CS 4 file that I'm trying to open in CS 5.5. When I try to edit the text in any text frame (e.g., in Story Editor), it tells me the text is overset and only displays a single line even though the field is clearly tall enough. Basically, it won't wrap the text onto the next line. In fact, trying to create a new text frame is always overset. It works correctly if I create a new document though.
    Any help is appreciated. Thanks.

    This means the frame is too narrow to hold the line, which can happen for a variety of reasons. IF text shows on the first line as you start to type, then disappears after a number of characters, you've got a setting that is preventing the text from breaking at the end of a line, possibly No Break applied to all text, or you have hyphenation turned off and are using non-breaking spaces (I see that a lot in imported Word files). If you never see any text, then it's probably an indent problem, either a frame attribute, or more likely the paragraph indent settings for the style or applied to the text as local formatting (saw that one the other day, also in an imported Word file).

  • How do I make a multi-line heading show up as a single line in the Table of Contents?

    I'm writing a document where the headings often have a line break in them for the sake of formatting. When I generate a Table of Contents, they show up as two entries on the same page instead of as a single heading.
    For example, if I have a section like:
    Oh My God
    You're Totally Not Going to Read This Section
    Section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, section text, etc.
    Then in the table of centents it shows up as something like:
    The Section Before That Section You're Not Going to Read ... 14
    Oh My God .................................................. 17
    You're Totally Not Going to Read This Section .............. 17
    The Section After That Section You're Not Going to Read .... 20
    When what I really want is a Table of Contents like this:
    The Section Before That Section You're Not Going to Read ... 14
    Oh My God You're Totally Not Going to Read This Section .... 17
    The Section After That Section You're Not Going to Read .... 20
    (Actually, I have a bunch of sections with titles like this all in a row, so it looks much worse than in the example.)
    How do I do this: Get the Table of Contents to ignore the carriage return in the middle of the section header?

    Try a Soft return, Shift + Return, instead of Paragraph break.

  • Why Rich Text (HTML Only) format email introduces line breaks (paragraph marks) in the email body in html?

    A sentence in rich text (change in Options, Delivery format) appears as a single sentence in browser. But when I check the page source I see that sentence has been broken in to multiple lines. Why is this done? Isn't this a bug?
    When viewed in a browser or application that supports rich text this does not create any problem since the line breaks are not taken into account . But I am trying to extract the text from this html and display in a nonHTML application like notepad.
    Is this done on purpose?
    For eg.
    In browser - Honesty is the best policy
    In View HTML Source -
    Honesty
    Is the
    best
    policy.

    lets start at the beginning.
    There is no such thing as rich text email, unless it in internal corporate stuff like MS Exchange, Lotus notes etc. EMail on the internet is HTML or Plain Text.
    I have no options > delivery format in my settings. Is this something to do with Outlook perhaps?
    Then there is your image. All those MSO objects. They stand for Microsoft Office Objects and indicate the source of the HTML as being Outlook or at least Microsoft Office. All in all I think your asking about Microsoft actions on a Mozilla forum.

Maybe you are looking for

  • I have Adobe Photoshop Elements 10. But the program can not run in Windows 8.1. Why not?

    I reinstalled Photoshop elements 10 on my new computer. the computer run Windows 8.1 My computer has two harddisks. One of them is from the old computer, and the other is a new one.

  • Problem with the Mac OS Mavericks recovery

    I recently purchased Macbook pro and updated OS X Mavericks on it. I also installed Windows 8.1 on it as i am a developer and also a student in University i need to work on different OS. So i used Boot Camp to install Windows 8.1 on it. Recently i tr

  • Putting a link in a mail

    Hi, I making a user registration page. In that till date, a user registers with all the 'said' details and an email is generated to Admin specifying the details of the user and a link which takes the admin to the 'user-add' page in a web application.

  • Is Viveza compatible with Aperture 3?

    I have recently moved my digital world to a slightly bigger and faster iMac and have been experiencing some problems with Viveza. I had previously been using Viveza (v2.0.0.4), with Leopard OSX 10.5.8 and Aperture 2.1.4 with some good results. Howeve

  • [SOLVED] Where can I browse the Arch kernel source?

    I tried to look for the kernel source code under /usr/src/linux-3.4.9-1-ARCH but there's only a binary file (an image?) vmlinuz in there. I wanted to look for drivers concerning usb for fun, but I can't seem to find the excact location of the kernel