[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: XML -> XML using XSL,DTD XALAN - JAVA
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 03 May 2001 15:07:33 +0100
x loop detect
From Bob DuCharme--

Date: Wed, 2 May 2001 17:06:25 -0400 (EDT)
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list-approval@xxxxxxxxxxxxxxxxxxxxxx
Subject: BOUNCE xsl-list@xxxxxxxxxxxxxxxxxxxxxx: Non-member submission from ["Bob DuCharme" <bob@xxxxxxxxx>]
X-Loop-Detect: 1


>From bob@xxxxxxxxx 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@xxxxxxxxxxxxxxxxxxxxxx>; 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@xxxxxxx>
From: "Bob DuCharme" <bob@xxxxxxxxx>
To: "Thushara Perera" <thusharap@xxxxxxxxxxxxx>,
"XML-DEV \(E-mail\)" <xml-dev@xxxxxxxxxxxxx>,
"XSL News Group \(E-mail\)" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.