<!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 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=724124220-19012002><FONT face=Arial color=#0000ff size=2>That's 
definately an intresting approach - keeps the JDOM model intact and no 
translation involved. Thank Anthony.</FONT></SPAN></DIV>
<DIV><SPAN class=724124220-19012002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=724124220-19012002><FONT face=Arial color=#0000ff size=2>Any 
other thoughts from the group?</FONT></SPAN></DIV></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Anthony Eden 
  [mailto:aeden@signaturedomains.com]<BR><B>Sent:</B> Saturday, January 19, 2002 
  8:08 AM<BR><B>To:</B> jdom-interest@jdom.org<BR><B>Subject:</B> RE: 
  [jdom-interest] Should I convert to/from 
org.jdom.Document<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=711030113-19012002>I 
  primarily use JDOM for loading configuration data.&nbsp; To that end I have a 
  Configuration interface and then one of the concrete implementations wraps a 
  JDOM document.&nbsp; The interface includes methods like getChildren(), 
  getChildValue(), getValue(), etc.&nbsp; I can then use different 
  implementations (such as pull data from a database</SPAN></FONT><FONT 
  face=Arial color=#0000ff size=2><SPAN class=711030113-19012002>) very 
  easily.</SPAN></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
  class=711030113-19012002></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
  class=711030113-19012002>Sincerely,</SPAN></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
  class=711030113-19012002>Anthony Eden</SPAN></FONT></DIV>
  <BLOCKQUOTE 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
    <DIV></DIV>
    <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><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></BLOCKQUOTE></BODY></HTML>