apurva zaveri wrote:
How can I have the following in my xml output.

<word spelling="SPELL"
pronunciation="m&#601;mba&#618;"/>

This uses and xml serializer.

The result i get is

<word spelling="SPELL"
pronunciation="m&amp;#601;mba&amp;#618;"/>
Are you adding the attribute value through ssome Java code?
Use "m\u0259mba\u026A" in this case (study the Java languaga
documentation for how to use arbitrary Unicode characters in
a string).
If you are pulling the stuff from a DB or something, either
try to get UTF-8 code into the source form the start, or you
have to pass it somehow through a parser.

J.Pietschmann



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to