Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Rendering the Ascii(0A) in the XML in Visual basic?

Reply
Thread Tools

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

 
 
Kelvin
Guest
Posts: n/a
 
      06-18-2004
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




 
Reply With Quote
 
 
 
 
Chris Lovett
Guest
Posts: n/a
 
      06-19-2004
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).

"Kelvin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
>
>



 
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
Data fields not rendering in Visual Web Developer ASMJ ASP .Net 0 06-16-2006 12:14 PM
WebControl rendering in frontpage 2003 - Migrating from Visual Studio 2003 to 2005 thierry.sanchis@free.fr ASP .Net 0 04-06-2006 03:36 PM
WebControl rendering in frontpage 2003 - Migrating from Visual Studio 2003 to 2005 thierry.sanchis@free.fr ASP .Net Web Controls 2 04-06-2006 03:29 PM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
IE6 SP1 rendering vs IE6 SP2 rendering Peter Mount HTML 4 01-31-2006 08:01 AM



Advertisments