Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 automatically frevvo automatically manages the set of XML instance documents that are generated by a submitted form to ensure that it is valid with respect to the document types in the form. The validity of values is enforced as described in Valid Forms and in the discussion on patterns.

However,  also  frevvo also ensures that the structure of a submitted document conforms to its type. This is best explained with an example. Consider the following schema fragment uploaded to frevvo.

Code Block
<xsd:element name="customer">   
  <xsd:complexType>     
   <xsd:sequence>       
     <xsd:element name="firstname" type="xsd:string"/>        
     <xsd:element name="lastname" type="xsd:string"/>
     <xsd:element name="fullname" type="xsd:string"/>      
   </xsd:sequence>   
  </xsd:complexType> 
</xsd:element>

...

However, this would generate an invalid XML document with respect to the schema since the schema specifies that a customer must also have a fullname.  manages  frevvo manages this automatically by creating an empty fullname element in the document. The generated document looks like:

...