I am receiving the below mentioned error in my xsl.
"An invalid XML character (Unicode: 0x0) was found in the element content of the document."
Not very sure why i am getting it. i found some posts on internet saying its because of some NULL value, some said its problem with the parser. but i want to know the actual problem and from where its coming. i have received this error in my prod. environment and i am trying to reproduce the issue but not able to do the same. could some one please tell me how can i get the same error again.
If the XML is UTF-32BE or UTF-32LE encoded and includes a BOM then it could account for the problem since UTF-32BE has a BOM of 0x00, 0x00, 0xFE, 0xFF and UTF-32LE has a BOM of 0xFF, 0xFE, 0x00, 0x00. You need to use a HEX editor on the offending file content to see exactly where the character code of zero appears.
As for how to reproduce the issue: since the problem is that the XML document you tried to parse contains a character which isn't valid according to the rules of XML, you should just try to parse that same document over again.