Can any one tell me if there is way parse/validate xml contents with the java code?
for example one of the validation can be to check if all the tags are closed in the xml given for validation..
Note that there is a difference btween testing for well-formedness (which is what closing and properly matching tags is all about) and validation (which requires a schema of some kind to test the XML against). Start reading here: https://coderanch.com/how-to/java/XmlFaq