After reading that C# code you may know that the code is about how to validate your xml file use Algorithm. However, since you want to do the same thing within java code. MSDN forum is not the right forum. Please switch to post your question to Java
related forum to consult this issue.
Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
HERE to participate the survey.