validating an XML file against a DTD

I have a problem!

I am unable to validate the xml against DTD. when I am setting the validation feature as true.if i modify the Xml file which violates the DTD , the modification should not effect the current XML, but when I am saving XML using a transformer. The Xml is saving with modification which violates the DTD

please help to solve this problem

Thanks,

shiva

[397 byte] By [sshivaa] at [2007-10-2 8:41:30]
# 1
I have read this several times and I don't understand your problem. Can you provide more detail as to what you are trying to do?
sabre150a at 2007-7-16 22:43:34 > top of Java-index,Java Essentials,Java Programming...