I think one can use MSV http://wwws.sun.com/software/xml/developers/multischema/ or https://msv.dev.java.net/ for partial validation. It doesn't give this functionality OOTB though, but its internal API at least, IIUC, contain the components you need for building e.g. a DOM-tree with partial validation functionality for sub trees. Take a look at the native validation interface https://msv.dev.java.net/unbranded-source/browse/*checkout*/msv/msv/doc/acceptor.html?rev=1.1

W3C have defined an API for partial validation: DOM Level 3 Validation Specification http://www.w3.org/TR/DOM-Level-3-Val/ it is designed for schema based editing, so besides partial validation you can also ask what kind of element that is allowed to insert at a certain place in the DOM-tree. Quite cool IMO, but I don't know if there are any implementations yet.

/Daniel

Torsten Curdt wrote:

Which validation api/validation library supports "partial validation". I am not bound to JARV, I only would like to validate a document fragment.


When I was doing some research about 1 1/2 years ago I could not
find a single one :(

I also talked to the Kohsuke (author of JARV) about this.
IIRC JARV does not support such feature yet.

Please let us know if you find something
--
Torsten


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to