Sunday, February 13, 2011

A semi colon character was expected - XML Error

XML Error: A semi colon character was expected. Error processing resource –

Error Description:

While viewing the xml file in a web browser, sometimes an error "A semi colon character was expected." Occurs.

Reason:

This occurs

1. When using external links on the XSLT sheet which contains the character “&”.

2. When there are html breaks in the content.

3. When there are quotes in the content.

Solution:

1. The work around is to simply replace every instance of & in the link with &

2. The work around is to simply replace every instance of html breaks with any symbol like semi colon ;

2. The work around is to simply replace every instance of single quote with "

No comments: