[jboss-dev-forums] [Design of JBossXB] - Re: Ignoring non-ignorable white space?

alex.loubyansky@jboss.com do-not-reply at jboss.com
Wed Jun 20 05:40:52 EDT 2007


I've added a test for the ObjectModelFactory to the IgnorableWhitespaceUnitTestCase. To make it pass you should set TrimTextContent to false (it can be set in the newRoot for all elements or in newChild per element):
      public Object newRoot(Object root, UnmarshallingContext ctx, String namespaceURI, String localName, Attributes attrs)
  |       {
  |          ctx.setTrimTextContent(false);
  |          return new Top();
  |       }

Does this work for everybody?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055940#4055940

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055940



More information about the jboss-dev-forums mailing list