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. Advertisements

  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. Advertisements

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. Magnus Lycka
    Replies:
    10
    Views:
    597
  2. Laurent
    Replies:
    20
    Views:
    682
    Chris Angelico
    Sep 9, 2011
  3. Jesse B.
    Replies:
    9
    Views:
    449
    Jesse B.
    Mar 27, 2010
  4. Chris Gunnels
    Replies:
    4
    Views:
    355
    Robert Klemme
    Sep 16, 2010
  5. Mark
    Replies:
    17
    Views:
    350
    Mirco Wahab
    Mar 25, 2007
  6. PerlFAQ Server
    Replies:
    0
    Views:
    191
    PerlFAQ Server
    Feb 25, 2011
  7. Replies:
    3
    Views:
    192
    Randy Webb
    Jul 17, 2006
  8. Replies:
    2
    Views:
    212
Loading...