I can't say that I even understand the question, really, but..
Each Element has an ordered list of children, which may be other
Elements, or Text or whatnot.
There is no flyweight pattern between Elements, even if they are identical.
If <foo> has three <bar> children, then the Element of foo has three Element
children named bar.
-bob
On Wed, 3 Apr 2002, Brian Young wrote:
> I'm curious about dom4j compliance with the infoset spec- particularly
> with the order of elements in a document.
>
> Specifically, I ask because I need to fit a JTable model to an XML
> document that currently has a traditional model of a vector of vectors.
> The table data can be rather large, several thousand rows at least, and
> ordinality is critical. The element that repeats for each row would
> preferably not have to have a "sequence number" attribute, because
> keeping that in sync when rows are added/removed would be nightmarish.
> Also I'm not sure how well or efficient the model would even sort on
> such an attribute if it existed.
>
> But, at the same time, I don't want to try and fill the JTable based on
> the order of repeating elements in the dom4J document if I can't depend
> on it. My understanding is the infoset spec gives me the guarantee I'm
> looking for- IF dom4j respects it?
>
>
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user
>
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user