[jdom-interest] question on JDom document validation. Happy N
ew Year
Jian, David
DJian at priceinteractive.com
Wed Jan 10 06:56:02 PST 2001
Hi,
I read this message and I hava a simple question:
How do I implement JDOM validation with schema (or dtd)?
Any example code will be appreciated.
Thanks
DJ
-----Original Message-----
From: Jason Hunter [mailto:jhunter at collab.net]
Sent: Tuesday, January 02, 2001 2:47 PM
To: Dominik Hasek
Cc: jdom-interest at jdom.org
Subject: Re: [jdom-interest] question on JDom document validation. Happy
New Year
> i must tell you that jdom is the
> best API ever made. I really wanted to knock my head to the wall when i
see
> the DOM or Sax API.
:-)
> I don't know what is exactly validation. But i think it is something
> like a verification to know if the inputted xml file is valid or not.
Yep.
> Does validation checks according to the dtd assigned to the xml file ?
Yep.
> If validation is set to true, and xml file is not valid what kind of
> exception is thrown ? saxExceptions ?
A JDOMException.
> Thanks to all of you who can me see the light ;-))
You'll find Brett's book "Java and XML" to be very enlightening.
-jh-
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
More information about the jdom-interest
mailing list