Russ,

try this

 private Document validateXMLInstance(String xmlString) throws SAXException,
 IOException
 {
   InputSource inputSource = new InputSource(new StringReader(xmlString));
   // to resolve relative reference to dtd
   inputSource.setSystemId("file:/DTDs/Job.dtd");
   DOMParser DP = new DOMParser();
   ((Configurable) DP).setFeature("http://xml.org/sax/features/validation";,
true);

   DP.parse(inputSource);
   Document document = DP.getDocument();
 }

----- Original Message -----
From: "Russ Reeves" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 03, 2000 2:22 PM
Subject: How to validate


> Is there documentation that explains how to validate using xerces?
> Here's what I've tried:
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
>

Reply via email to