1

I need to parse some text/xml files I get from different sources. Now I have found some problems with line breaks.

In some files i get 
 as line break, in some others i get only 
.
Now our Delphi XE 2 has some problems with 
, it is not imported correctly.

For example:
1. City
State
Result of import:

City
State

  1. City
State
    Result of import:

City&&State

Why does this occur and how to solve it?

Obl Tobl
  • 5,604
  • 8
  • 41
  • 65

1 Answers1

1

There is no difference between these two XML texts. 
 specifies the same character as 
. Likewise for 
 and 
.

Your XML parser is broken and the solution is to either fix it or replace it.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490