You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Kishor Atigre <ki...@msn.com> on 2003/08/09 05:30:40 UTC

Changing schema at runtime..

Hi All

I want to know, if there is any way to change the schema at runtime.
What I mean is , for eg in the following extract, the maxlength is set to 32767.

   <xsd:element name="description" >
    <xsd:simpleType>
     <xsd:restriction base="xsd:string">
      <xsd:maxLength value="32767"/>
     </xsd:restriction>
    </xsd:simpleType>
   </xsd:element>

What I want to do is to set this value at runtime programmatically.
Is this possible at all or are there any work arounds. I don't want to create, a separate
schema file for each possible value that I want to set.

Thanks in advance
ksa