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

wolfc do-not-reply at jboss.com
Wed Jun 6 11:32:46 EDT 2007


Why is JBossXB ignoring non-ignorable white space?

Besides the obvious: because the code does so.
      public void characters(char ch[], int start, int length)
  |       {
  |          // todo look at this later
  |          // do not notify content handler if these are just whitespaces
  |          int i = start;
  |          while(i < start + length)
  |          {
  |             if(!Character.isWhitespace(ch[i++]))
  |             {
  |                contentHandler.characters(ch, start, length);
  |                break;
  |             }
  |          }
  |       }
  | 
  |       public void ignorableWhitespace(char ch[], int start, int length)
  |       {
  |       }
In the end when I put '<env-entry-value> </env-entry-value>' in a deployment descriptor I get a null back.
This is IMHO wrong.

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

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



More information about the jboss-dev-forums mailing list