>I'd like to validate an XML file before 
>transforming it, and am wondering 
>if there's an easy way to do it?

try:

parser.setFeature (
        "http://xml.org/sax/features/validation";,
        true);

cheers
andrew


-----Original Message-----
From: Mark Woon [mailto:[EMAIL PROTECTED]
Sent: 24 July 2002 04:25
To: [EMAIL PROTECTED]
Subject: Validating xml before transformation




Hello,

I'm new to Xalan and am looking for help:  I'd like to validate an XML 
file before transforming it, and am wondering if there's an easy way to 
do it?  Ideally, I would also like to be able to customize any error 
messages that arise from the validation step.  What are my options?

A quick search through the archives leads me to believe that there used 
to be a -VALIDATE option for org.apache.xalan.xslt.Process, and that its

currently commented out.  Why is it commented out?  Was it meant to do 
what I'm looking for?

Thanks,
-Mark









---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002
 

Reply via email to