VB.NET Trim does not work on XML InnerText that contains a vbLf?

Spaniaunrebra

New Member
If I take the following XML:\[code\]<security><user>user</user><password>pass </password></security>\[/code\]and call the \[code\]Trim()\[/code\] method on the \[code\]InnerText\[/code\] of the password node, it Trims it properly, but If I modify the fragment to look like this:\[code\]<security><user>user</user><password>pass\[/code\] I can't get the \[code\]Trim()\[/code\] method to work, pass with the spaces removed is return as \[code\]pass\[/code\] (It has a single space at the end). I looked at the watch window and when I doubnle click the value, it shows it as:\[code\]"pass" & vbLf & ""\[/code\]
 
Back
Top