aspose file tools*
The moose likes XML and Related Technologies and the fly likes Checking XSD constraints at runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Checking XSD constraints at runtime" Watch "Checking XSD constraints at runtime" New topic
Author

Checking XSD constraints at runtime

Mike Himstead
Ranch Hand

Joined: Apr 12, 2006
Posts: 178
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

Joined: Oct 24, 2004
Posts: 116
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

Joined: May 24, 2003
Posts: 425
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checking XSD constraints at runtime
 
Similar Threads
Reflection Design Question
Changing a Web Service - Deploying new XSD's
validating xml with xsd
XML Generation with Freemarker Templates.
data validation using XSD