Matthew, Thank you for your help. The issue I am having (or, at least, I am thinking this to be an issue) is that the Betwixt somehow escapes special characters in the values of elements. In my case, element <val> has a string value which happens to be an XML string "<![CDATA[<error>Some Error</error>]]". Betwixt replaced all "<", ">" with "<" and ">". I could, of course, run the result XML through something like commons-lang's StringExcapeUtils.unescapeXml() to get what I need, but why waste time on extra processing if there might be a way to configure Betwixt to simply ignore special characters in the first place. I would appreciate if you recall some of the details of how you tackled a similar issue in the past.
Thanks, Max -----Original Message----- From: matthew.hawthorne [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 10:56 PM To: Jakarta Commons Users List Subject: Re: Betwixt Configuration to process XML-formatted values Nechiporenko, Maxim wrote: >>The XML I am getting looks the following: >> >><foo> >> <val> >> <![CDATA[<error>Some Error</error>]]> >> </val> >></foo> >> >>when I would need it to be: >> >><foo> >> <val> >> <![CDATA[<error>Some Error</error>]] >> </val> >></foo> >> >>I have no issues marshalling this Bean using Castor. Any help on how >>to get Betwixt to produce the desired XML string is welcome. Take a look the the docs http://jakarta.apache.org/commons/betwixt and read about .betwixt files. They allow you to completely customize your XML output. I've had to solve a similar problem before, unfortunately I can't remember the exact details of how I did it. Post again if you are still having problems, and I can give you some more details. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
