     //--------------------------------------------------------------------------
 
     /**
+     * 
+     */
+    public function get strictNillability():Boolean
+    {
+        return _strictNillability;
+    }
+
+    /**
+     * 
+     */
+    public function set strictNillability(strict:Boolean):void
+    {
+        _strictNillability = strict;
+    }
+
+
+    /**
      * Function to be used for escaping XML special characters in simple content.
      * Returns default implementation in this class.
      */

    // 
    //--------------------------------------------------------------------------

    private var _xmlSpecialCharsFilter:Function = escapeXML;

}

     */
    public function encodeXSINil(definition:XML, name:QName, value:*, isRequired:Boolean = true):XML
    {
        // Check for nillable in the definition only if strictNillability is true.
        // Otherwise assume nillable=true.
        var nillable:Boolean = true;
