[jdom-interest] validation + classpath
olivier refalo
orefalo at yahoo.com
Mon Oct 23 10:45:13 PDT 2000
Thank you,
But I actually found the solution this morning...
<!DOCTYPE controller-init SYSTEM
"classpath/to/my/dtd/controller-init.dtd">
I believe the solution is that same as what you were
suggesting.
Regards,
OR
--- Kesav Kumar <kesavk at voquette.com> wrote:
> There is a nice way of including DTD which I did for
> my work.
>
> java.net.URL url =
> this.getClass.getResource("sample.dtd");
> Document.setDocType(new DocType("MainElement",
> url.toString());
>
> Now you can validate the document.
>
> Kesav Kumar
> Software Engineer
> Voquette, Inc.
> 650 356 3740
> mailto:kesavk at voquette.com
> http://www.voquette.com
>
>
> -----Original Message-----
> From: olivier refalo [mailto:orefalo at yahoo.com]
> Sent: Sunday, October 22, 2000 9:26 PM
> To: jdom-interest at jdom.org
> Subject: [jdom-interest] validation + classpath
>
>
> I have a simple, yet interesting question...
>
> As a new Jdom/Xml user I am trying to validate an
> XML
> document with a DTD stored in the CLASSPATH.
>
> Is there any way to set the DTD for a given document
> ?
> I was thinking about a method like:
>
> Document.setDTD(InputStream is);
> document.validate();
>
> Any suggestions are welcome.
> Thanks,
> OR.
>
>
>
> =====
> __________________________________________________
> Olivier Refalo / Software engineer
>
Java/DistibutedSystems/UnixSysop/WebSpecialist/Security
> http://www.crionics.com/orefalo /
> mailto:orefalo at yahoo.com
> _________________________________________________
> Java: A simple, object oriented, distributed,
> interpreted, robust, secure,
> architecture neutral, portable, high-performance,
> multi-threaded, and
> dynamic language.
> Cited from (The Java Language: A White Paper) by SUN
> Microsystems.
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf! It's FREE.
> http://im.yahoo.com/
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
> t.com
=====
__________________________________________________
Olivier Refalo / Software engineer
Java/DistibutedSystems/UnixSysop/WebSpecialist/Security
http://www.crionics.com/orefalo / mailto:orefalo at yahoo.com
_________________________________________________
Java: A simple, object oriented, distributed, interpreted, robust, secure, architecture neutral, portable, high-performance, multi-threaded, and dynamic language.
Cited from (The Java Language: A White Paper) by SUN Microsystems.
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/
More information about the jdom-interest
mailing list