users
[Top] [All Lists]

Re: [cinjug-users] XML Schema validation

To: twcrone@xxxxxxxxxxxxx, users@xxxxxxxxxx
Subject: Re: [cinjug-users] XML Schema validation
From: John Olmstead <jolmstead2k@xxxxxxxxx>
Date: Thu, 17 Nov 2005 09:02:27 -0800 (PST)
Delivered-to: mailing list users@cinjug.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JNOrPk4xv6qeiQQv4i26AAYMFMKbftOBhTNdf8mgXij5iabQG+Msy5snoAaUuOvGthjDY3AjQlX/T2ZUEuIwmQN+8bPbV95NgLr3XpcC26PFc7fIc3RyFgeE/eeycJOSVBtVlIG/n+COwIUXrukE+xZH3PKpszPDvhTcZAO3+Sw= ;
In-reply-to: <111720051653.24023.437CB5A50006862D00005DD721979129950A02019D0C999B@insightbb.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
You may want to consider an open source api called castor for this.

http://www.castor.org/

It has xsd validation capability as well as the ability to generate java 
objects from xsd
schema.  An ant task can take your xsd file as an argument and generate beans 
that represent
the schema and helper classes that validate against that schema.

Regards;

John Olmstead

--- twcrone@xxxxxxxxxxxxx wrote:

> I know that you set the following features to have a Xerces XML parser to 
> validate a document versus a schema...
> 
>                       parser.setFeature
> ( "http://xml.org/sax/features/validation";, true );
>                       parser.setFeature( 
>               
>               "http://apache.org/xml/features/validation/schema";, true );
> 
> But that only validates against the schema declared in the actual document.  
> How do I override the one declared and have it validate against a schema that 
> I specify?
> 
> --
> twcrone@xxxxxxxxxxxxx
> 859-278-9634
> 
> ---------
> You may unsubscribe from this mailing list
> by sending a blank email addressed to:
> users-unsubscribe@xxxxxxxxxx
> 
> --
> Find additional help by sending a blank email
> addressed to:
> users-help@xxxxxxxxxx
> 
> 


John Olmstead
jolmstead2k@xxxxxxxxx

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

<Prev in Thread] Current Thread [Next in Thread>