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

Discussion in 'XML' started by Kelvin, Jun 18, 2004.

  1. Kelvin

    Kelvin Guest

    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
     
    Kelvin, Jun 18, 2004
    #1
    1. Advertising

  2. Kelvin

    Chris Lovett Guest

    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" <> wrote in message
    news:...
    > 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
    >
    >
    >
    >
     
    Chris Lovett, Jun 19, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. M P
    Replies:
    6
    Views:
    554
    Joe Fallon
    Aug 7, 2004
  2. Stewart
    Replies:
    1
    Views:
    528
    Ken Cox [Microsoft MVP]
    Feb 24, 2006
  3. Peter Mount
    Replies:
    4
    Views:
    966
    Peter Mount
    Jan 31, 2006
  4. Anthony Moss

    visual basic from visual C++

    Anthony Moss, Dec 16, 2003, in forum: C++
    Replies:
    1
    Views:
    289
    Aggro
    Dec 16, 2003
  5. hunkgym
    Replies:
    1
    Views:
    1,997
    =?Utf-8?B?TGVvbiBNYXluZQ==?=
    Oct 30, 2006
Loading...

Share This Page