[jdom-interest] jdom and dom4j

Dennis Sosnoski dms at sosnoski.com
Thu Jun 20 08:35:17 PDT 2002


dom4j does optionally implement the W3C DOM interface in addition to 
it's custom Java interface (so the same document representation can be 
accessed through both interfaces). In theory I suppose someone could 
write a JAXP interface for dom4j using that DOM interface, but AFAIK 
nobody has done so. I don't know of anything along those lines for JDOM, 
either, though I think there's been speculation that if JDOM becomes a 
Java standard it'll be given equal billing with DOM in JAXP.

  - Dennis

Sam wrote:

>True. 
>
>But in order for a parser to be returned from the JAXP api, the
>underlying impl must implement the JAXP interfaces... ie be JAXP
>compliant (thats what i meant by work with JAXP).
>
>So.. let me rephrase that. Can jdom be used under JAXP ? (ie is there
>a factory implementation class for JAXP ?
>
>In order for this to work, the dom4j DOM would have to implement the
>w3c dom interface
>
>./s
>
>
>
>Dennis Sosnoski wrote:
>  
>
>>I'm not sure I understand the question. Neither JDOM nor dom4j works
>>with JAXP directly, though they can use JAXP to get a parser.
>>
>>I'm finding more and more people running into problems with using JAXP
>>because of multiple implementations on the classpath (especially with
>>1.4), though, so at this point I recommend that people go directly to
>>the parser rather than using JAXP unless they really and truly don't
>>care what parser they end up with.
>>
>>  - Dennis
>>
>>Sam wrote:
>>
>>    
>>
>>>So does the production relase of dom4j that you mention work with
>>>JAXP ? If I remember right,it works with only the TrAX API.
>>>
>>>./s
>>>
>>>
>>>
>>>Dennis Sosnoski wrote:
>>>
>>>
>>>      
>>>
>>>>Jason, I know your feelings about this but (AFAIK) the dom4j codebase
>>>>does not contain any JDOM code so it's inaccurate to describe it as a
>>>>fork of JDOM.
>>>>
>>>>As for the level of press attention, JDOM has had several prominent
>>>>individuals who have extensively promoted it over the last 2+ years,
>>>>including numerous articles, presentations, and some books discussing
>>>>the then-current version. Each of these is out of date, with
>>>>non-functioning example code, within a few months when the next beta of
>>>>JDOM is published. People seem to keep buying the books though, so I
>>>>guess they don't mind. :-) I don't think there's been even one article
>>>>written on using dom4j, though I've given some brief code examples in my
>>>>articles and presentations.
>>>>
>>>>dom4j *has* been production released, with stable interfaces, for some
>>>>months now. Many people would consider that a major advantage.
>>>>
>>>> - Dennis
>>>>
>>>>Jason Hunter wrote:
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>>There's been quite a few charts/tables comparing JDOM to DOM in many
>>>>>>regards.  But typically, the folks constructing the charts/tables
>>>>>>ignore dom4j completely.  dom4j hasn't gotten nearly the press
>>>>>>attention as JDOM.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>That's probably because JDOM came first.  dom4j was a fork of JDOM.
>>>>>Historically, forks tend not to prosper as well as the original
>>>>>projects.
>>>>>
>>>>>-jh-
>>>>>_______________________________________________
>>>>>To control your jdom-interest membership:
>>>>>http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>_______________________________________________
>>>>To control your jdom-interest membership:
>>>>http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
>>>>
>>>>
>>>>        
>>>>
>>>_______________________________________________
>>>To control your jdom-interest membership:
>>>http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
>>>
>>>
>>>
>>>      
>>>
>
>  
>





More information about the jdom-interest mailing list