Hi,
I have been working on a small contribution that supports the Post Schema Validation Infoset in dom4j I am happy to contribute this code, I have tested it with Apache Xerces 2.6.2 only, but I would appreciate some discussion :- about the best way to package this support? should it be part of the DOM4j behaviors? (SAXReader, BaseElement) The changes are are simple, but a little cludgy, as I could see a way of doing what I needed within the existing io features. Outstanding issues How to specify the PSVI provider in a transparent manner, the demo forces JAXP, and makes some assumptions that may not hold true for SAX implementations other than apache. Should there be a PSVIProvider property for instance, Should the SAXReader provide a capturePSVI boolean property, or should the we use inheritance, as the demo uses Where should be a neater way to perform the interception of the element and attribute creation to allow for the PSVI details to be detailed. I initially tried to use the dispatch handler, but this is package level class, as is ElementStack etc, hence the packaging in dom4j.io How to set the features that are required. Xerces has a number of features that can be set. I don't know if there are standard features, and the appropriate sets of options that will support other implementations Test against other implementations (are there any?) The demo requires the a.xml and a.xsd file to be in top of the C drive. (Any non windows users will have to modifythe code in the Text.java) There is a demo file Test.java, which can be executed, and prints out the content of the annotation in the xsd, accessed via PSVI I would appreciate any comments [Mike Skells] I can sent the files but zips are being blocked from the list. I can send then directly to anyone who is interested, orif someone can tell me of the appropriate mechanism to package the file I will adopt that Mike ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ dom4j-dev mailing list dom4j-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-dev