Solved

Validate an xml string against an xsd using  jdk 1.5

Posted on 2007-03-23
1
546 Views
Last Modified: 2012-06-27
What is the best way to validate an xml string against an xsd using Java 1.5 (the xml does not specify the xsd)
0
Comment
Question by:mikehalfsheen
1 Comment
 
LVL 30

Accepted Solution

by:
Mayank S earned 500 total points
ID: 18785788
You can use the javax.xml.validation package - there is code available on Sun's site here:

http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/validation/package-summary.html

There is code here as well:

http://www.herongyang.com/xml/xsd_validation.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
basic hardware to learn oop advanced design patterns 3 88
bitbucket vs gitbucket 3 57
table example 4 23
Error in @AspectJ Based AOP with Spring 2 0
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now