K
killy971
I am using java to validate an XML file with a DTD, without having the
DVD declaration inside the original file, by setting the doctype
dynamically to a transformer like this :
transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, dtd);
transformer.transform(source, new StreamResult(new
StringWriter()));
I would like to know if there is a way to validate an XML file with an
XSD, again, without having the declaration of the xsd file inside the
original XML file, but by declaring it dynamically.
Thank you !
DVD declaration inside the original file, by setting the doctype
dynamically to a transformer like this :
transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, dtd);
transformer.transform(source, new StreamResult(new
StringWriter()));
I would like to know if there is a way to validate an XML file with an
XSD, again, without having the declaration of the xsd file inside the
original XML file, but by declaring it dynamically.
Thank you !