This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: XML -> XML using XSL,DTD XALAN - JAVA


 From Bob DuCharme--

>Date: Wed, 2 May 2001 17:06:25 -0400 (EDT)
>From: owner-xsl-list@lists.mulberrytech.com
>To: xsl-list-approval@lists.mulberrytech.com
>Subject: BOUNCE xsl-list@lists.mulberrytech.com:    Non-member submission 
>from ["Bob DuCharme" <bob@udico.com>]
>X-Loop-Detect: 1
>
> >From bob@udico.com  Wed May  2 17:05:59 2001
>Received: from mail15a.boca15-verio.com ([208.55.91.57])
>         by biglist.com (8.8.8/8.8.5/BL-2) with SMTP id RAA24247
>         for <XSL-List@lists.mulberrytech.com>; Wed, 2 May 2001 17:05:58 
> -0400 (EDT)
>Received: from www1518.boca15-verio.com (208.55.91.99)
>         by mail15a.boca15-verio.com (RS ver 1.0.58s) with SMTP id 018033362;
>         Wed,  2 May 2001 17:06:55 -0400 (EDT)
>Message-ID: <01f101c0d34c$11408470$4567370a@UDI.com>
>From: "Bob DuCharme" <bob@udico.com>
>To: "Thushara Perera" <thusharap@eurocenter.lk>,
>         "XML-DEV \(E-mail\)" <xml-dev@lists.xml.org>,
>         "XSL News Group \(E-mail\)" <XSL-List@lists.mulberrytech.com>
>Received: from no.name.available by clnyrnt8isp.clamericas.com
>           via smtpd (for [208.55.91.99]) with SMTP; 2 May 2001 21:14:00 UT
>References: 
><711677989624D411B81E003005016255323F51@eccolcom01.colombo.eurocenter.lk>
>Subject: Re: XML -> XML using XSL,DTD  XALAN - JAVA
>Date: Wed, 2 May 2001 17:07:22 -0400
>MIME-Version: 1.0
>Content-Type: text/plain;
>         charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook Express 5.50.4522.1200
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
>X-Loop-Detect: 1
>
> > I am using XALAN to transform my XML file to another XML file using XSL. I
> > have a small JAVA program which does this. Does anyone knows How to
>validate
> > an XML file against the DTD using JAVA ? Is there any methods available in
> > XALAN to implement this ? If yes, could you please send me a sample
>example
> > of how to it, please ?
>
>I just poked through the Xalan apidocs a bit, and found that four classes
>have an isValidating() method to indicate whether a parser validates or not
>(for example, see the SaxParser class).
>
>The apidocs documentation for the XMLInterface's getFeature method
>demonstrates an attempt to turn validation on if isValidating() shows that
>the parser you're using doesn't have it on.
>
>The apidocs index shows that several classes and interfaces have a parse()
>method, so if this is called and validation is on, you should be all set.
>
>Bob DuCharme            www.snee.com/bob            <bob@
>snee.com>      see http://www.snee.com/bob/xsltquickly for
>info on upcoming "XSLT Quickly" from Manning Publications.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]