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

alex.loubyansky@jboss.com do-not-reply at jboss.com
Fri Jun 8 05:50:14 EDT 2007


If I modify the schema to
   private static final String XSD =
  |       "<?xml version='1.0' encoding='UTF-8'?>" +
  |       "<xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'" +
  |       " targetNamespace='http://www.jboss.org/test/xml/simpleContent'" +
  |       " xmlns='http://www.jboss.org/test/xml/simpleContent'" +
  |       " elementFormDefault='qualified'" +
  |       " attributeFormDefault='unqualified'" +
  |       " version='1.0'>" +
  |       " <xsd:element name='top'>" +
  |       "  <xsd:complexType>" +
  |       "   <xsd:sequence>" +
  |       "    <xsd:element name='string' type='xsd:string' minOccurs='0' maxOccurs='1'/>" +
  |       "   </xsd:sequence>" +
  |       "  </xsd:complexType>" +
  |       " </xsd:element>" +
  |       "</xsd:schema>";

and the class to
   public static class Top
  |    {
  |       public String string;
  |    }

and remove that interceptor then the top.string == ''.

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

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



More information about the jboss-dev-forums mailing list