Marchi, Ron wrote:
> This portion of the XML Spec (http://www.w3.org/TR/REC-xml/#AVNormalize)
> is describing how white space should be handled while parsing a XML
> document, specifically convert tabs and line feeds .etc to a single
> space character. The best I can tell is that JAXB and/or the underlying
> SAX/DOM parsers (Xerces) are doing exactly what the spec says.
Yes. The parser is responsible for doing this. It's required by the spec.
> The answer to your question is yes. Could or should JAXB encode the line
> feeds to 
 in attribute values when marshalling a JAXB object?
Yeah, I guess you are right.
You can file a bug if you want to know when this gets implemented.
Otherwise you can come back and pick up a build to see if it works.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com