Solved

Validate an xml string against an xsd using  jdk 1.5

Posted on 2007-03-23
1
543 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:
mayankeagle 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This video teaches viewers about errors in exception handling.

758 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

21 Experts available now in Live!

Get 1:1 Help Now