The correct order followed to run the TestNG suite from the XML file is as follows:
<suite><test><classes><class><methods><suite><test><classes><class><methods>The closing tags don’t appear here as it is just for demonstration purposes. Subsequently, you can learn more about How to run TestNG suites through XML?
<suite>
<test>
<classes>
<class>
<methods>
The closing tags don’t appear here as it is just for demonstration purposes. Subsequently, you can learn more about How to run TestNG suites through XML?