Validate an xml string against an xsd using jdk 1.5

What is the best way to validate an xml string against an xsd using Java 1.5 (the xml does not specify the xsd)
Who is Participating?
Mayank SConnect With a Mentor Associate Director - Product EngineeringCommented:
You can use the javax.xml.validation package - there is code available on Sun's site here:

There is code here as well:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.