
Tag archives for Validation
Hi,
A post with concrete examples concerning the generation of Types/POJO from a XSD file, the serialization of these objects/POJO to XML and finally the validation of XML with XSD.
Generate Custom Types from XSD file
XSD file myXsdFile.xsd:
CSharp sources and types generator:
//....
After execution, a CSharp file MyCustomTypes.cs containing all types of XSD file is generated:
Serialization of objects to XML
Instantiation of POJO objects ...more»
Hello,
I would present you an example concerning the annotation in JAVA: validation POJO with annotation.
Brief presentation
Introduced with Java SE 5, the annotations are more increasingly used in the development of applications. Annotations provide informations about a class and they have no direct effect on the annotated code. Annotations can be preserved at runtime (RetentionPolicy.RUNTIME) or are only available at development ...more»
After, my post concerning the XML parsing with JAXP (SAX and DOM APIs), here, I would present simple examples of validation XML stream with the JAXP (Java APIs for XML Processing) API which is a common interface for creating, parsing and manipulating XML documents using the standard SAX, DOM and XSLTs.
1. XML Validating
XML has become indispensable in Information Systems Architectures ...more»
After the post Sencha/ExtJs: Validation fields on the fly with VType, I would write some words concerning the form's validation on client side with the Sencha/ExtJs framework.
A concret example, with a form containing several fields and in our case a date field and a time field.
First, we will create a VType in order to valid the time field;
...and the form ...more»
