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
Solved

Validate an xml string against an xsd using  jdk 1.5

Posted on 2007-03-23
1
551 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.

808 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