eleiminate \n from beginning and end of string

Discussion in 'XML' started by paul.rusu@gmail.com, Dec 19, 2005.

  1. Guest

    How to do this?
     
    , Dec 19, 2005
    #1
    1. Advertising

  2. Peter Flynn Guest

    wrote:

    > How to do this?


    In XSLT this would be the normalize-space() function, but it will also
    collapse multiple spaces to a single space, and convert newlines to
    spaces as well.

    Would I be guessing right that you have a document with markup like:

    <p>
    this is some text
    </p>

    instead of

    <p>this is some text</p>

    ?

    ///Peter
    --
    XML FAQ: http://xml.silmaril.ie/
     
    Peter Flynn, Dec 19, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jesse B.
    Replies:
    9
    Views:
    237
    Jesse B.
    Mar 27, 2010
  2. Chris Gunnels
    Replies:
    4
    Views:
    165
    Robert Klemme
    Sep 16, 2010
  3. PerlFAQ Server
    Replies:
    0
    Views:
    131
    PerlFAQ Server
    Feb 25, 2011
  4. Replies:
    3
    Views:
    102
    Randy Webb
    Jul 17, 2006
  5. Replies:
    2
    Views:
    122
Loading...

Share This Page