I need to validate order of my output xml against a XSD using XMLUnit framework. I am new to XMLUnit and have no idea how to do it. I know that XMLUnit compares two XMLs but how to compare XML against a XSD?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Instead of using XMLUnit for this aspect, you could use the
javax.xml.validationAPIs that are available in Java SE 5 and above:For More Information