Solved

Validate an xml string against an xsd using  jdk 1.5

Posted on 2007-03-23
1
558 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse buid path vs tomcat lib path 10 49
Setup GlassFish 4 57
IBM TS2900 (3572) Tape Autoloader Java? 12 110
activeMQ Queue Messages Enqueued and Messages Dequeued 1 120
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…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

710 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