Ray,

I would recommend JDOM or possibly DOM4J. They 
greatly simplify the type of processing you describe. 
I recently wrote an article that describes using 
JDOM to support XML property documents. I have also 
written about XML validation quite a bit. You can 
read those article here:

http://www.midrangeserver.com/mpo/mpo022703-story02.html

http://www.midrangeserver.com/mpo/mpo032802-story03.html

http://www.midrangeserver.com/mgo/mgo121302-story01.html

http://www.midrangeserver.com/mpo/mpo050902-story03.html

To validate with JDOM, you create your parser 
like:

SAXBuilder builder = new SAXBuilder(true);

That's all there is to it.

David Morris 

>>> ray_456@xxxxxxxxxxx 03/25/03 01:41 AM >>>
Hello all,

I'm a newbie to Java. I need some help in creating a class which can 
validate(against DTD), parse an XML file and load the data into a
physical 
file on AS/400.
Any help in this regard is greatly appreciated.

Thanks in advance,
Ray


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.