string

Top  Previous  Next

- dateFormat <SimpleDateFormat>

- cdata [false] (true|false)

 

Attributes

 

dateFormat: Requires the string to match the supplied java.text.SimpleDateFormat

 

cdata: Whether to wrap the content in <![CDATA[ content ]]> when marshaling to XML

 

The Schema

 

<schema packageScope="com.wickedfastsolutions.demo.domain">
   <Email>
       <Importance parent="Email" regex="normal|urgent">urgent</Importance>
       <From>j.smith@MegaTVi.com</From>
       <To>p.jones@MegaTVi.com</To>
       <Title minOccurs="0">Schema wars episode</Title>
       <Date type="string" dateFormat="yyyy-MM-dd" minOccurs="0">2002-07-20</Date>
       <Message type="string">We need a description of this episode immediately!</Message>
   </Email>
</schema>