Rendering the Ascii(0A) in the XML in Visual basic?

K

Kelvin

In Visual basic, the input textboxes uses 0x20 for vbCrLf the newline
character.
However, the newline is written in text as 0x10...

Is there any methods to ask MSXML30.DLL to solve this discrepancy
instead of painstakingly replacing Chr(10) with all the vbCrLf?

Thanks.
Kelvin
 
C

Chris Lovett

The .text property complies with the W3C XML specification, which requires
end of line normalization (converting CR LF into just LF). But the .xml
property returns the "unnormalized" text so that MSXML can round-trip a
document without losing it's original end of line format. So if you move to
the NODE_TEXT node, then use the .xml property you will get text that the
Windows text box is happier with. Then to update the field use the .text
property (since .xml is readonly).
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top