Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > eleiminate \n from beginning and end of string

Reply
Thread Tools

eleiminate \n from beginning and end of string

 
 
paul.rusu@gmail.com
Guest
Posts: n/a
 
      12-19-2005
How to do this?

 
Reply With Quote
 
 
 
 
Peter Flynn
Guest
Posts: n/a
 
      12-19-2005
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/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
draw a line if the color of points of beginning and end are différent from white olsr.kamal@gmail.com Python 2 03-06-2013 08:57 PM
FAQ 4.32 How do I strip blank space from the beginning/end of a string? PerlFAQ Server Perl Misc 0 02-25-2011 05:00 PM
Get the beginning of the hour and the end of the hour Chris Gunnels Ruby 4 09-16-2010 12:33 PM
index of string from beginning of line vs beginning of file Jesse B. Ruby 9 03-27-2010 04:04 PM
Striping spaces from the beginning and end of a string through RegExp romayankin@gmail.com Javascript 3 07-17-2006 04:05 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57