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 [EMAIL PROTECTED] GG: 341942 [EMAIL PROTECTED] PGP: www.okrasz.prv.pl/pgp.asc -------------------------------------------------------------




Reply via email to