xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Clark <an...@apache.org>
Subject Re: Why can I get the validation to work??
Date Wed, 23 Feb 2000 23:25:25 GMT
Johan 'Spocke' Sörlin wrote:
> I've used the IBM xml4j parser before and Iäm thinking of 
> migrating to Xerces but I cant even make simple validation 
> correctly, can some one help me???

You must register an ErrorHandler to receive notification of
the validity errors.

>   ((Configurable)parser).setFeature("http://xml.org/sax/features/validation", true );

Just a note, the Configurable interface has been removed in
the latest SAX2 beta. The latest version of Xerces (1.0.2)
supports the new SAX2 API, and therefore doesn't have the
Configurable interface.

Andy Clark * IBM, JTC - Silicon Valley * andyc@apache.org

View raw message