Specifying a schema in parsing code 2003-05-26 - By Scott Lamb
Is there a way to specify a specific XML schema in the parsing code? I'm trying to avoid putting a lot of error checking into my Java code by reusing the XML schema. It works fine if they specify the xsi:schemaLocation stuff in the document, but I want it to check even if they've forgotten it, rather than giving a mystery NullPointerException from my code when an attribute is missing.
Alternatively, if I could just throw an error if the schema location isn't set, that might be good enough.
Thanks, Scott Lamb
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|