[xsd-users] How to iterate different childs of a node together

Boris Kolpackov boris at codesynthesis.com
Fri Mar 31 09:26:56 EST 2006


Hi Thomas,

Thomas Müller <th.mueller at weisang.com> writes:

> If the references in the generic sequence would be considered
> as weak it should be possible to come away without ref counting...

Then we will need to update existing containers to add/remove
items in the sequence of all members. I guess we will have to
do this anyway.


> I am not quite sure if I understand this. My XML files are validated
> against their schema when they are loaded, so if I have them in memory
> and iterate over the childs of a node from left to right this should
> always be 'a 1 b 2'. Everything else should be rejected in advance.

Right. I was talking about modification. My example just shows that
it becomes really complicated to maintain valid (per-schema) order
in the sequence of all members if there are modification to the tree.
That's also why we currently don't do this for DOM associations (i.e.,
we don't create DOM nodes for new tree nodes that were inserted into
the tree).

hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060331/1c03cb37/attachment.pgp


More information about the xsd-users mailing list