Next in thread → Next in month →

Re: [xml-dev] Validating only XML Schema - Xerces - J

From
Mukul Gandhi <>
To
Suresh Joshee <>
Date
2008-09-02T06:12:56Z
ID
<>
Thread
Re: [xml-dev] Validating only XML Schema - Xerces - J
you can use JAXP validation API, which is supported by Xerces-J.

Below is the pseudo code for validating a Schema:

SchemaFactory sFactory =
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
Schema schema = sFactory.newSchema(.....);

If it's an invalid Schema, you'll get an exception from the above
code, else execution will pass successfully.

On 9/2/08, Suresh Joshee <> wrote:
> Hello All,
>
> Do anybody know how to validate XML Schema only without using instance
> document using Xerces-J ?
>
>
> Thanks in advance.
>
>
> Regards,
> Suresh


-- 
Regards,
Mukul Gandhi
Next in thread → Next in month →