Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 04-23-2008, 02:18 PM   #1
Default Hidden linebreaks in string? VB.NET


I have the following problem.

I receive an XML file from one of our customers webservice.
Within this xml file, I have a section with the following .

<comment>20-03-2008
Issue 12345 handled
Issue 12345 closed

28-03-2008
Issue 12345 handled
Issue 12345 closed
</comment>

Now i generate some sort of report, in HTML.

I read the <comment> tag into a string.
I use the string in my report, and that’s where the misery starts. The HTML gives an error and can’t show.

After some testing and debugging, I found out, that the error is likely because of hidden linebreaks in the string. When I look at the string when debugging, it just shows as a normal linear string, no weird chars.
However when I copy the string and paste it in word for example, it suddenly shows the text with the linebreaks as it was in the xml comment. If for example I copy the string manually while debugging and make a variable, which I then paste the string in, and use this string as the source for the HTML, then it does not give an error (although when comparing the string textually, it is the exact same thing).

My problem is, that it would be fine for me to either remove the hidden linebreaks, or to alter the string so that it does show in HTML without errors.
I tried everything I could think of, looked for vbClRf etc but I just can’t find what causes the linebreaks in the first place, let alone how to remove it.
Other then that I don’t really have any clue atm, since the linebreaks don’t show visually appear in my string.

Any help appreciated is greatly appreciated.


Jiggy
Jiggy is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Give you enough string functions in Java web reporting tool freezea Software 0 10-08-2009 09:03 AM
urgent help....need urgent help on say string task.. pooja Software 0 03-03-2009 06:16 AM
Java String Problems rbnbenjamin General Help Related Topics 0 02-03-2009 11:02 PM
Captcha Creation In Vb.net cutekiller28 Software 0 09-22-2008 07:15 AM
ASP.NET: Asign Users in Roles(Array.IndexOf(Of String) method) msandlana Software 0 04-25-2008 06:37 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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