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

alex.loubyansky@jboss.com do-not-reply at jboss.com
Thu Jun 14 06:54:50 EDT 2007


I've just committed the test and the following changes to trunk:
- if the type is simple then all the characters are reported as they appear in the xml content
- if the type doesn't allow text content then all the characters are ignored
- otherwise it depends on the value of SchemaBinding.isIgnoreWhitespacesInMixedContent()

For now, the default for the ignoreWhitespacesInMixedContent is true for backwards compatibility. But we can discuss this. On one hand, it's ok to report whitespaces and line breaks between elements as the text content in this case, on the other hand it may not be desirable.

Another question is if ignoreWhitespacesInMixedContent is true then should indentation be reported as an empty string or null.

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

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



More information about the jboss-dev-forums mailing list