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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kelvin

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

    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

    #2
    Re: Rendering the Ascii(0A) in the XML in Visual basic?

    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 "unnormaliz ed" 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" <student@nowher e.com> wrote in message
    news:40d27bba@n ews.starhub.net .sg...[color=blue]
    > 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
    >
    >
    >
    >[/color]


    Comment

    Working...