Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2005

Tip: Looking for answers? Try searching our database.

Goal: do XML/XSD validation with Ant 1.5.4 and JDK 1.4.2.  How?

Thread view: 
david.karr@wamu.net - 14 Jul 2005 20:08 GMT
I really need to be able to validate XML against an XSD, using Ant
1.5.4 and JDK 1.4.2.  It appears this is straightforward to do with the
latest Ant release and/or the latest JDK, but not with the releases
that I'm limited to.

I noticed the "iso-relax" sourceforge project, which includes the JARV
library (which contains the Ant task).  This was promising, but it
causes an NPE to be thrown in Xerces' XMLSchemaValidator class, and I
have no idea why.

I'm querying the ant-user mlist about this, but I figured this would be
another good place to try.
E.Otter - 18 Jul 2005 03:34 GMT
Buried somewhere in the documentation for the 1.4 JDK is a statement that
the included XML parser class cannot do schema validation (DTD validation:
yes, Schema validation: no).  However, I believe that Ant uses the XML
parser in its ANT_HOME/lib directory.  You probably have an older xerxes.jar
and the your best bet is to delete that and download the latest xerces.jar
and drop it into the ANT_HOME/lib directory.

> I really need to be able to validate XML against an XSD, using Ant
> 1.5.4 and JDK 1.4.2.  It appears this is straightforward to do with the
[quoted text clipped - 8 lines]
> I'm querying the ant-user mlist about this, but I figured this would be
> another good place to try.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.