Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2007, 04:46 AM
Authorized User
 
Join Date: Oct 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML validation with XSD

I need to validate a xml with XSD in java program .
I am creating a builder as follows

Reader sReader = new StringReader(xmlStr);
SAXBuilder builder
            = new SAXBuilder("org.apache.xerces.parsers.SAXParser", true);
org.jdom.Document document = builder.build(sReader);

how should i specify the XSD file against which we need to validate
Variable xmlStr is my XML message.








Similar Threads
Thread Thread Starter Forum Replies Last Post
create xml with xsd validation obaxe3k XSLT 1 August 13th, 2008 09:43 AM
xsd conditional validation kapar_p XML 4 August 7th, 2006 01:48 PM
XSD validation in non english language rjonk XSLT 1 June 8th, 2006 05:02 PM
XML To XML, using XSL & XSD supercop75 XSLT 1 April 8th, 2006 02:48 AM
xml validation with xsd amolkad XML 0 June 24th, 2004 06:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.