Thursday, June 13, 2013

XML Error In Lotus notes : XML Page cannot be displayed

Hi All,

Issue :

Recently, we have faced an XML error called "Whitespace is not allowed at this location. Error processing resource "Notes link"

<Title> India & US </Title>

Analysis:

I have found that, Title name contains "&" character in the above xml format, that is the reason the XML is not working and throwing this error.

Solution:

1. We have to handle the "&",character, the title name is coming from Notes field. So we have handle the character using below code 2 lines of code
x
1. titlename= Evaluate("@ReplaceSubstring(Titlename; ""&""; ""&amp;"")", doc)
2.  Print |<Title>| & titlename(0) & |</Title>|

No comments:

Post a Comment