validation

A collection of 4 posts

A Java geek
  • Me
  • Books
  • Speaking
  • Mentions
  • Focus
Nov 9, 2025 xml xsd validation xerces

XML Schema Validation 1.1 in Java

This week, I received an interesting task: dusting off a legacy Java application. The application analyzes specific XML files in proprietary format. I know XML doesn’t sound sexy to junior developers, but it has an amazing benefit. One can validate a file against a grammar. Such grammar is called an XSD, the acronym for XML Schema Definition. Fun fact: you write XSDs in XML. In this post, I explain the problem, what I tried, and the final working solution.

Nicolas Fränkel
Sep 2, 2012 validation xml

XML validation with imported/included schemas

Recently, I tried to help a teammate design a WSDL file. I gently drove him toward separating the interface itself in the WSDL file and domain objects in a XML Schema file. One thing leading to another, I also made him split this XSD into two separate files, one including another for design purposes. Alas, tests were already present, and they failed miserably after my refactoring, complaining about a type in the included file not being found.

Nicolas Fränkel
Mar 22, 2010 jsr validation

Bean validation and JSR 303

In this article, I will show you how to use the new Bean Validation Framework aka JSR-303. The legacy Before getting the result that is JSR 303, aka the Bean Validation framework, there were two interesting attempts at validation framework. Each came from an end of the layers and focused on its scope. Front-end validation Struts was the framework to learn and use on the presentation layer in 2001-2002.

Nicolas Fränkel
Dec 29, 2009 authoring beans custom handler parser schema spring tag validation xml

Discover Spring authoring

In this article, I will describe a useful but much underused feature of Spring, the definition of custom tags in the Spring beans definition files.

Nicolas Fränkel
A Java geek © 2008-2026
v. bc04c88300c3ec997ce8470fbff5395dc9e518b1/13264050981
Latest Posts