What is the purpose of an XML validator?

a. to make the XML code more appealing to look at

b. to provide more functionality

c. to separate the browser’s window

d. to be sure that the XML code is properly formatted

1 answer

d. to be sure that the XML code is properly formatted

An XML validator checks the syntax and structure of an XML document to ensure it conforms to the rules specified in the XML schema or Document Type Definition (DTD). This helps ensure that the XML document is valid and can be properly processed by applications that use or consume XML data.