How to Pass NonValidXmlCharecters in biztalkserver?
Here iam using scripting functiod to pass NonValidXmlCharecters
In scipting functiod Iam using inline c#:
belo following code i have written
public String stripNonValidXMLCharacters(String in)
{
StringBuilder out = new StringBuilder();
char current;
if (in == null || ("".equals(in))) return "";
for (int i = 0; i < in.length(); i++)
{
current = in[i];
if ((current == 0x9) ||
(current == 0xA) ||
(current == 0xD) ||
((current >= 0x20) && (current <= 0xD7FF)) ||
((current >= 0xE000) && (current <= 0xFFFD)) ||
((current >= 0x10000) && (current <= 0x10FFFF)))
out.append(current);
}
return out.toString();
}
Iam Sending this data as a input :"dsdfjhdskjjdkldskjd",hdjgshsg#*jhj%@&"