Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newlines counting as 2 characters?

Status
Not open for further replies.

CapsuleCorpJX

IS-IT--Management
Jun 23, 2004
70
US
Ok here is my problem. Newlines are typically two characters, \r\n (carriage return, line feed).

The problem is the VB6 XML class I'm using(MSXML2.DOMDocument40) counts \r\n as two characters, while every other XML App/parser seem to count it as one char.

Is there a way to have it consider \r\n as one character long?

The newlines invalidates some of the XML files I recieve because it bumps it over the size limit by 1.

 
If you're talking about msxml2's dom parser, I think it conforms well with the recommendation by collapsing (os-dependent) \r\n to \n.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top