RE: creating element with ID in a document

2001-07-05 Thread Evert Haasdijk
> -Original Message- > From: Jason E. Stewart [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 05, 2001 20:49 PM > To: [EMAIL PROTECTED] > Subject: Re: creating element with ID in a document > > > "Evert Haasdijk" <[EMAIL PROTECTED]> writes: > &

Re: creating element with ID in a document

2001-07-05 Thread Jason E. Stewart
"Evert Haasdijk" <[EMAIL PROTECTED]> writes: > 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 no

Re: creating element with ID in a document

2001-07-05 Thread Jason E. Stewart
"Francois Rioux" <[EMAIL PROTECTED]> writes: > with the DOM_Document function createElement, i am trying to > create an element that has an attribute of type ID as defined > in the DTD. > > When I set this attribute, it is supposed to be added in the ID table > of the document,

RE: creating element with ID in a document

2001-07-05 Thread Evert Haasdijk
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

creating element with ID in a document

2001-07-05 Thread Francois Rioux
Hi, with the DOM_Document function createElement, i am trying to create an element that has an attribute of type ID as defined in the DTD. When I set this attribute, it is supposed to be added in the ID table of the document, but it does not work with Xerces 1.5. Is this feature not imp