Hi Bryan
(BTW thanks Bob for jumping in and helping out).
Just out of interest, what kind of custom-in-memory tree have you got? Would
it be worth deriving from AbstractElement or DefaultElement and adapting to
your tree, making your tree appear as child elements and attributes?
When most trees are mapped to XML then usually, Element, Attribute and Text
nodes are the important bits to worry about, the other stuff is less
important (CDATA, DocType, Entity, ProcessingInstruction etc.)
James
----- Original Message -----
From: "Bryan Carpenter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 19, 2001 3:19 AM
Subject: [dom4j-user] What's the minimum I have to provide to make a custom
tree work with dom4j?
> If I have a custom in-memory tree structure for which
> I'd like to provide read-only access through dom4j,
> what do I need to provide? From what I can see, I
> need to implement the Node interface for each node in
> my tree, but as I look at the Node interface, I see
> a lot of XPath functionality that could be significant
> work to implement beyond just the tree traversal and
> introspection functionality that my tree already
> has available. I was hoping to be able to put a thin
> layer over my tree and make it play in the dom4j
> world, but maybe that's unrealistic. Or, maybe I
> just haven't found the right info.
>
> Are there any helper classes for doing the XPath
> functionality, or perhaps a document that provides
> somewhat of a "cookbook" approach?
>
> I'd appreciate any enlightenment that you'd care to
> offer! And if this is a case of RTFM! I'd gladly
> accept a pointer to the proper "FM". ;-)
>
> Bryan Carpenter
>
> __________________________________________________
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
> http://dailynews.yahoo.com/fc/US/Emergency_Information/
>
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user