posted 14 years ago
The schema definition indicates that the element only content model applies, in which case it's possible that the parser implementation, if in validating mode, will trim ignorable whitespaces from the element's content. Not sure how likekly that is though. You said that you're using "the Apache API". By that do you mean XMLBeans? Could you post the code that invokes the API that write the Object graph to the XML file? Are you absolutely sure that, before writing the String value to the XML file it does, in fact, contain the 12 trailing white spaces?
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.