[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Validating Bulk XML Data

  • From: "Andrew Welch" <andrew.j.welch@g...>
  • To: xml-dev@l...
  • Date: Wed, 15 Aug 2007 09:58:47 +0100

Re:  Validating Bulk XML Data
On 8/15/07, Michael Kay <mike@s...> wrote:
> > >                 I ve got a number of xmls in one file and a
> > schema for these, is there a way to get around validating
> > them one at a time ?

> There's a validation API in JAXP so if you are prepared to write an
> application in Java you can achieve what you need: the API allows you to
> prepare/compile a schema, construct a validator, and then use the validator
> repeatedly to validate multiple source documents.

If you don't want to write your own, Kernow does directory validation
using Saxon or Xerces.  You can use the GUI or use it's API in your
Java app eg:

Kernow kernow = new Kernow();
boolean allPassed = kernow.validateDirectory(File dir, Schema schema);

Kernow can be downloaded from: http://kernowforsaxon.sourceforge.net/

The API is still under development and likely to change.  I'm probably
going to return a list of failures, rather than just a boolean, but I
haven't gotten around to it yet.

cheers
andrew
-- 
http://andrewjwelch.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.