Hi Ulf
Thanks for your answer. My problem is quite strange, I have an extern validation scheme - an xsd file and I try to validate with this scheme a Document. The Document is created at run time (it is not loaded from a file).
The next code snippet shows how I create the Document and its root node.
My validation does not find the root. I get an exception like :
Exception in
thread "main" org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'Parameterset'.
where the Parameterset is the name for my root.
Even more strange if I wrote the generated document in to a file and I reload it (with docBuilder.parse(new File(file)) ) it works.
Why I can not validate the run time generated document ?
Regards M