[jira] Closed: (CK-1) Schema Validation

jira-yCVjj/[email protected]
Newsgroups gmane.comp.java.spice.devel
Message-ID <[email protected]>
Message:

   The following issue has been closed.

   Resolver: Peter Donald
       Date: Fri, 4 Apr 2003 6:44 AM

Completed. WIll use specified schema to validate or if no schema is validated will atempt to "guess" the schema using MSV.
---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=CK-1


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: CK-1
    Summary: Schema Validation
       Type: New Feature

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: configkit
   Fix Fors:
             1.1
   Versions:
             1.0

   Assignee: Peter Donald
   Reporter: Peter Donald

    Created: Mon, 24 Mar 2003 8:37 PM
    Updated: Fri, 4 Apr 2003 6:44 AM

Description:
ConfigKit needs to implement a simplified Schema validator. The validator should read the schemas from the simplified entity catalog in the jar and should probably use the API at

http://iso-relax.sourceforge.net/apiDoc/index.html

Sample code would look like;

//Using PublicID
Validator validator = 
  ValidatorFactory.create( "-//PHOENIX/Assembly DTD Version 1.0//EN", null );

//Using SystemID
Validator validator = 
  ValidatorFactory.create( null, "http://jakarta.apache.org/phoenix/assembly_1_0.dtd" );

and then validation could occur via something like

validator.validate( myContentHandler );
validator.validate( myStream );
validator.validate( new InputSource(myStream) );



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.