View RSS Feed

Recent Blogs Posts

  1. Java DOM Schema Validation

    by , 04-27-2012 at 06:12 PM
    In Java it is possible to validate a DOM graph according to an XML Schema. The technique I will show here is validation after the DOM graph is created, not during creation as was otherwise the norm with DTD validation.
    First you must load the XML Schema into a Schema object. Once loaded into a Schema object you can use that same Schema object to validate multiple DOM graphs. This is smart, because then you only have to parse the XML Schema once. The result is significantly better performance, ...
    Tags: dom schema Add / Edit Tags