• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checking XSD constraints at runtime

 
Mike Himstead
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm looking for an XML binding framework with a certain feature. What I'd like to have is a possibility to create objects from an XML scheme which know there constraints so I can check them at runtime. I don't want to unmarshall the objects and validate against the XSD.
[ June 21, 2006: Message edited by: Mike Himstead ]
 
Robert Hayes
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out XMLBeans.

There are various ways to do validation at runtime. Just make sure you read the validation documentation because it's "off" by default.

Here's the validation documentation.

--Robert
[ June 19, 2006: Message edited by: Robert Hayes ]
 
Purushoth Thambu
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are quite few data binding implementations available like castor, jaxb. Before you decide on which one to use it's better to look around to see the performance of these binding solutions. You can find really nice article about performance of varioud binding solutions in IBM's developerswork.
http://www-128.ibm.com/developerworks/library/x-databdopt/index.html]Various data binding frameworks overviewhttp://www-128.ibm.com/developerworks/library/x-databdopt2/]Performance of various of data binding frameworks
[ June 19, 2006: Message edited by: Purushothaman Thambu ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic