[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSD with keys... what to use in Java to process XML?

From: dave <ceek63@yahoo.com>
Date: Mon, 19 Nov 2007 12:12:06 -0800 (PST)
To: xmlschema-dev@w3.org
Message-ID: <106479.34218.qm@web38008.mail.mud.yahoo.com>
XSD with keys... what to use in Java to process XML?


If you've an XSD with key/keyref constraints, what is
the best XML parsing (JAXP vs JAXB) method to use in
Java?

I did some reading on this. I was inclined to use
Java-XML binding frameworks to leverage my XSD. But
JAXB 1.0 doesn't support key/keyref (meaning doesn't
support validation?? not sure).
Also not sure if JAXB 2.0 supports it.

OR should I use JAXP instead?

Parsing performance is not an issue for my
application.

  I know key/keyref constraints' use at the XSD
 level.
  Can you access these key/keyrefs at the Java
  application level?
  For e.g. I need to find the number of Keyrefs
  referencing the Key in my Java app?
  
  Basically, I am trying to understand if I can
  leverage these constraints at the Java level (like
  accessing selector/field values, xpath expressions,
  etc).
  
  Or are these constraints are only used at the XSD
  level and XML validation?
 
  In short, how would one leverage these key/keyrefs
 at the Java application level?
 
  Thanks for any pointers.


      ____________________________________________________________________________________
Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  http://overview.mail.yahoo.com/
Received on Monday, 19 November 2007 20:12:22 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.