Skip
repetitive navigational links
L-Soft  -  Home of  the  LISTSERV  mailing list  manager LISTSERV(R) 14.5
Skip repetitive navigational links
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2005)Back to main MODS pageJoin or leave MODSReplyPost a new messageSearchProportional fontNon-proportional fontLog in
Date:         Mon, 3 Jan 2005 11:56:30 -0500
Reply-To:     Metadata Object Description Schema List <[log in to unmask]>
Sender:       Metadata Object Description Schema List <[log in to unmask]>
From:         Andrew E Switala <[log in to unmask]>
Subject:      Schema validation
Comments: To: [log in to unmask]
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline

Since XMLSpy appears to have a bug or two, users of same could get Xerces from http://xml.apache.org/ to verify the validity of XML schemas and instance documents created with that editor. It's free, and doesn't require any programming to use as a validator of existing documents. I use the Java version with the following Windows script: @echo OFF setlocal set XERCES_HOME=C:\xerces-2_6_0 set CLASSPATH=%XERCES_HOME%\xercesImpl.jar set CLASSPATH=%CLASSPATH%;%XERCES_HOME%\xml-apis.jar set CLASSPATH=%CLASSPATH%;%XERCES_HOME%\xercesSamples.jar java -cp "%CLASSPATH%" dom.Counter -v -s -f %* endlocal Assuming the script is named xsdvalidator.bat, it's used like xsdvalidator instance.xml The dom.Counter sample application just prints the number of elements and attributes in the instance document, but with the -v -s -f options it validates the instance document (by DTD if there's an DOCTYPE declaration, and by schema if there's an xsi:schemaLocation attribute present). It additionally validates every schema according to the built-in schema for schemas. --Andy


Back to: Top of message | Previous page | Main MODS page

LISTSERV.LOC.GOV CataList email list search Powered by LISTSERV email list manager