jaxp + jaxb to porcess and validate XML
Don't we need both the advanced constraint validation (like key/keyrefs) and Marshal/Unmarshal capability in one toolkit?
I have a situation where I do have key/keyref constraints in my W3C schema. I need a tool to validate such constraints. JAXB doesn't seem to do that but JAXP does. I also need Marshal/Unmarshal feature to process between XML/Java objects. I could use JAXB here. Isn't there one toolkit which does both? I thought this is a very common need? Looks like I am wrong!
Typically, a user would process incoming XML and store in DB. In the other direction, read from DB and generate an XML. I guess JAXB seems like a perfect fit here. But, it lacks identity constraint validation. I am curious what tools/libraries people use to get both MArshal/Unmarshal and Key/Keyref validation.
my current platform is Java 5.0.