<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>
<META content="MSHTML 5.00.3103.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=711030113-19012002>I
primarily use JDOM for loading configuration data. To that end I have a
Configuration interface and then one of the concrete implementations wraps a
JDOM document. The interface includes methods like getChildren(),
getChildValue(), getValue(), etc. I can then use different implementations
(such as pull data from a database</SPAN></FONT><FONT color=#0000ff face=Arial
size=2><SPAN class=711030113-19012002>) very easily.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=711030113-19012002></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=711030113-19012002>Sincerely,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=711030113-19012002>Anthony Eden</SPAN></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV></DIV>
<DIV align=left class=OutlookMessageHeader dir=ltr lang=en-us><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
jdom-interest-admin@jdom.org [mailto:jdom-interest-admin@jdom.org] <B>On
Behalf Of </B>Naresh Bhatia<BR><B>Sent:</B> Friday, January 18, 2002 4:17
PM<BR><B>To:</B> 'jdom-interest@jdom.org'<BR><B>Subject:</B> [jdom-interest]
Should I convert to/from org.jdom.Document<BR><BR></FONT></DIV>
<P><FONT face=Arial size=2>Hi,</FONT> </P>
<P><FONT face=Arial size=2>I have a quick design question for the group. When
using an XML parser such as JDOM, is it better for the application to work
directly with the document tree (such as org.jdom.Document) or should it use
an application specific model and convert to/from the document tree? What are
the pros/cons of the two approaches, where does one make sense over the
other?</FONT></P>
<P><FONT face=Arial size=2>Naresh Bhatia</FONT> </P></BLOCKQUOTE></BODY></HTML>