S
Stefan Ram
An XML-document model can be built in-memory using Java and be
associated with a DTD as given in the following article.
http://www.cafeconleche.org/books/xmljava/chapters/ch10s03.html
Can such a model be validated in-memory against that DTD?
I would prefer it to check after every modification if the
modification is valid. No validation at all seems to be done
by the code of the above article. It also accepts element
types not given in the DTD.
(Something that might be related to DTD-validation is found in
the package com.sun.org.apache.xerces.internal.impl.dtd
[possibly as of Java 1.5 or earlier]. But I have no idea how
to apply this to a DOM in memory.)
associated with a DTD as given in the following article.
http://www.cafeconleche.org/books/xmljava/chapters/ch10s03.html
Can such a model be validated in-memory against that DTD?
I would prefer it to check after every modification if the
modification is valid. No validation at all seems to be done
by the code of the above article. It also accepts element
types not given in the DTD.
(Something that might be related to DTD-validation is found in
the package com.sun.org.apache.xerces.internal.impl.dtd
[possibly as of Java 1.5 or earlier]. But I have no idea how
to apply this to a DOM in memory.)