You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Prashant Neeraj <pr...@mastek.com> on 2008/10/30 13:05:17 UTC

A problem in using schemavalidate ANT task

Hi,
I am a bit stuck in using the schemavalidate task of Apache Ant 1.7.

Problem Statement: - I am using the schemavalidate task



 <schemavalidate

       noNamespaceFile="document.xsd"

       file="xml/endpiece.xml">

     </schemavalidate>


This takes in the XSD file that's there in the local machine. My
problem is that I don't have an XSD file but I have a JAR that has the
XSD within it. So I just wanted to know that is there some way by
which I can pass the JAR as a classpath or something else and the ant
task would automatically pick up the required XSD from the JAR?

The work around that I have done for the time being is that I UNJAR
the JAR in a temp location and then use the XSD from that temp location.
Just wanted to know whether there's a better way out?



So please do help. Thanks in advance

Thanks & Regards
Prashant Neeraj

MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~