Thursday, November 19, 2009

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

1) 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.

Example of a  XML snippet  that throws this error:

<NODES>

<NODE Caption="Ext Link" Link Name="http://google.com/ccc?key=0AEeVE& hl=en" />

</NODES>

Reason:

This occurs when using external links on the XSLT sheet which contains the character “&”.

Solution:

The work around is to simply replace every instance of & in the link with &amp;

<NODES>

<NODE Caption="Ext Link" Link Name="http://google.com/ccc?key=0AEeVE&amp;hl=en" />

</NODES>

13 comments:

  1. This post was useful and it saved my time.

    ReplyDelete
  2. Brilliant, thanks you saved me hours of messing about.

    ReplyDelete
  3. thanks dude.. helped allot

    ReplyDelete
  4. i dont have a node. so where to i change it?

    ReplyDelete
  5. brilliant! many thanks to you.

    ReplyDelete
  6. Thank you very much!!

    ReplyDelete
  7. Very helpful information. THX a lot.

    ReplyDelete
  8. Again - you are a really nice guy - many thanks for the time saved

    ReplyDelete
  9. Thanks man. Quick and easy solution that I would have spent hours messing around with. Big help.

    ReplyDelete
  10. Excellent Post........Keep posting Man

    ReplyDelete