Validating some XML against a DTM / Schema?
Hello All.
I have a program that accepts some XML.
Now, this program can accept ANY STRING, which is bad.
I wish to check the input string by loading it into an XML Dom, and seeing if it's parsed ok. [This i can do].
If it's parsed ok, i need to check to see if the XML content conforms to my XML Schema / DTD (so i know they have passed well parsed, and well comformed XML).
How do i check if the well parsed XML is WELL COMFORMED?
How do i check the XML against an XML Schema / Dtd?
Thank you for any help, and Merry X-Mas :)
-Pure Krome-