axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcin Okraszewski <okr...@o2.pl>
Subject Re: XML Schama message validation.
Date Mon, 22 Sep 2003 21:17:32 GMT
But in this way I can only parse some input stream. Axis provides 
already built DOM document (not an input stream), so I would have to 
write a message somewhere and than read it again. I suppose that there 
is some better solution!

Marcin


Użytkownik Stephen Gordon napisał:
> This isn't really an axis question, but i think that this should get you 
> on the way:
> 
> SAXParserFactory spf = new SAXParserFactory();
> spf.setValidating(true);
> 
> SAXParser saxp = spf.newInstance();
> 
> saxp.parse(WHATEVER);
> 
> For further help read the Xerces API docs: 
> http://xml.apache.org/xerces2-j/api.html
> 
> stephen
> 
> 
> 
> Marcin Okraszewski wrote:
> 
>> Hi,
>> I would like to validate incoming messages against XML Schema 
>> definition, but unfortunately I don't know to do it.
>>
>> Could you tell me how to do it?
>>
>> Thanks in advance.
>> Marcin Okraszewski
>>
>>
>>
> 
> 
> 

-- 
-------------------------------------------------------------
                       Marcin Okraszewski
okrasz@o2.pl                                       GG: 341942
okrasz@vlo.ids.gda.pl          PGP: www.okrasz.prv.pl/pgp.asc
-------------------------------------------------------------



Mime
View raw message