user764974
user764974

Reputation: 73

Is there any difference between using 
 and 
 in xml?

I was using a web-service which accepts xml input, but when i use 
 for new line it is rejecting the input saying dtd validation error. But when i use 
 it is accepting. But from docs of web-service i see that they suggest us to use 
.

Which is the correct format?

Upvotes: 0

Views: 874

Answers (1)

Anders R. Bystrup
Anders R. Bystrup

Reputation: 16060

No they are the same. The numbers after the &# is the codepoint and can be specified in decimal form (as in your case) with or without leading zeroes, or in hexadecimal form &#xNNNN.

Read more about Character and Entity References.

Upvotes: 3

Related Questions