Francois,

Alas, the internal map of Ids is only updated during a parse. AFAIK, you
have two options:

1. write your document to a stream after creating the attribute, parsing
that and from then on working with the newly parsed doc (by no means ideal,
but apparently the only way to do this in DOM level 2)
2. modify the xerces sources and add a 'setAttributeWithID' function. That's
what I did when I encoutered the same problem (in xerces 1.4). If you want
me to, I can send you the modifications I made, although I did make them to
v1.4, so I'm not sure they'll work with 1.5.

Bonne chance, Evert


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to