byte[]

Top  Previous  Next

Notes

 

When marshaled to xml, the byte array is first base64 encoded, and then placed inside a <![CDATA[[ ]]> tag.

 

The Schema

 

<schema packageScope="com.wickedfastsolutions.demo.domain">
  <book>
      <id parent="book" minLength="1" maxLength="32">b0836217462</id>
      <available parent="book" type="set" values="YES(TRUE),NO(FALSE)" separator=",">TRUE</available>
      <isbn minLength="1" maxLength="32">0836217462</isbn>
      <title minLength="1" maxLength="255" example="Being a dog is a full-time job.">
          <xml:lang parent="title" fixed="en">en</xml:lang>
      </title>
      <author example="Charles Shultz">
          <id parent="author" minLength="3" maxLength="3">CMS</id>
      </author>
      <character minLength="0" maxLength="255" minOccurs="1" maxOccurs="unbounded" example="Snoopy">
          <id parent="character" length="2" regex="[A-Z]{2}">SN</id>
      </character>
      <publishYear dateFormat="yyyy" length="4">2008</publishYear>
      <image type="byte[]" minOccurs="0"></image>
  </book>
</schema>

 

 

<Data type="byte[]">Kf0JBpbxCfXutxjveYs8CXMsFpQYgkllcHHzJJsz9+g=</Data>