Using JDOM and JAXP v1.1 to validate XML
I have a JDOM Document object which is constructed by my program. I need to validate the Document object against an XML schema on the fly (i.e. without saving the XML doc to the file system). I thought it might work to print the Document to standard output and have XMLReader parse that:
xmlReader.parse(new InputSource(new InputStreamReader(
System.in)));
but the parse method blocks waiting for input. For some reason it also doesn't work when I run the code in a different thread.
Any hints would be greatly appreciated. Should I use another class other than XMLReader?
Thanks,
C.R.
Message was edited by:
C.R.Cren

