• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Checking XSD constraints at runtime

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic