Skip navigation

Today I had this nice idea…

I wanted to implement some simple persistence support for my objects that probably contain at most 5-7 fields and the total number of objects would be at most 20-30. I didn’t want to put database and ORM in place for such a small task.
So I thought I’m going to develop something like:

#persons.properties
name = John
lastName = [...]

Don’t let Xml be your API

It’s interesting to see how many hours java developers spend these days writing Xmls. I can hardly imagine writing java server-side applications without a single xml document nowadays. All those configuration files, deployment descriptors, schema files, mappings, etc. Has anybody tried to count those hours?
The things are getting worse when you work within SOA. The [...]

Xml validation with Schematron without a hassle

Recently I’ve been looking for XML validation solution. Yes, there are many out of there. But I’ve been looking for the best one.This is what’s drawn my attention:

Document Type Definition (DTD) – XML’s built-in schema language

Pros and cons:

Not easy for interpreting by humans;
Doesn’t provide data validation, provides only structure validation;
Non-XML syntax;
Doesn’t have good support of [...]