java - Adding source validation to a StructuredTextViewer -
i added application nice xml source viewer. now, have xsd scheme defines xml document. idea start on adding source validation relies on scheme?
thanks!
to check xml well-formed, run through documentbuilderfactory parser. additionally validate against .xsd schema referenced in xml, call:
factory.setvalidating( true );
if xsd schema not referenced within xml validating, can supply this:
factory.setattribute(jaxp_schema_source, new file(schemasource) );
for more information, read article oracle here: http://download.oracle.com/javaee/1.4/tutorial/doc/jaxpdom8.html
Comments
Post a Comment