You can use a DTD, an XDR schema or an XSD schema to identify the type of XML code you’ve written.;
,, This can be as simple as knowing which files you are using and checking the box on some applications.



To validate XML this way, you need to use the proper codes, properties and links in your files. If you set up your files correctly, this will trigger a validation event any time the reader encounters an error.
Identify which type of grammar you want to use.
Write your XML code using the correct files.

,
Set the code on online validations.
Use an XMLValidatingReader.
{"src": "wikihow-all_validation", "title": "How to Validate XML1"}