This content has been marked as final.
Show 3 replies
-
1. Re: Error in smooks transformer
scottdawson Oct 8, 2008 10:29 AM (in response to vishal12345)According to the XML spec http://www.w3.org/TR/xml/:
The ampersand character (&) and the left angle bracket (<) MUST NOT appear in their literal form, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. If they are needed elsewhere, they MUST be escaped using either numeric character references or the strings [ampersand amp semicolon] and [ampersand lt semicolon] respectively.
So your XML is not valid. You can fix it by replacing the ampersand with the escape sequence or enclosing the text in a CDATA section.
I don't know if Smooks provides an easy way to escape the special characters. Maybe a Smooks expert can comment on that.
Regards,
Scott -
2. Re: Error in smooks transformer
vishal12345 Oct 9, 2008 8:42 AM (in response to vishal12345)thanks
-
3. Re: Error in smooks transformer
tfennelly Oct 10, 2008 5:36 AM (in response to vishal12345)This is an XML issue... you need to escape reserved characters (& < > etc) wit their entity reference equivalents. So "&" should be represented as "&".