You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Dave Brosius <db...@qis.net> on 2005/03/21 02:20:59 UTC
In memory-built DOM documents and IDs
I am building an in memory DOM document, that I would like to attach ID attributes to, and then in the same session search for elements by those ids (getElementById).
I see CoreDocumentImpl has the concept of putIdentifier and getIdentifier for this purpose, but was wondering if there was a standardized way to to this
without relying on the impl classes.
Re: In memory-built DOM documents and IDs
Posted by Dave Brosius <db...@qis.net>.
I see the faq about creating a dom document with level 3, here
http://xml.apache.org/xerces2-j/faq-dom.html
Do understand correctly that this is already part of the current 2.6.2 code,
or is this a cvs only thing?
----- Original Message -----
From: "Michael Glavassevich" <mr...@ca.ibm.com>
To: <xe...@xml.apache.org>
Sent: Sunday, March 20, 2005 8:40 PM
Subject: Re: In memory-built DOM documents and IDs
> Yes, this is possible with DOM Level 3 [1]. You need the DOM Level 3 build
> of Xerces-J to get at this functionality.
>
> [1]
> http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-ElSetIdAttrNS
>
> "Dave Brosius" <db...@qis.net> wrote on 03/20/2005 08:20:59 PM:
>
>> I am building an in memory DOM document, that I would like to attach
>> ID attributes to, and then in the same session search for elements
>> by those ids (getElementById).
>>
>> I see CoreDocumentImpl has the concept of putIdentifier and
>> getIdentifier for this purpose, but was wondering if there was a
>> standardized way to to this
>> without relying on the impl classes.
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: In memory-built DOM documents and IDs
Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Yes, this is possible with DOM Level 3 [1]. You need the DOM Level 3 build
of Xerces-J to get at this functionality.
[1]
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-ElSetIdAttrNS
"Dave Brosius" <db...@qis.net> wrote on 03/20/2005 08:20:59 PM:
> I am building an in memory DOM document, that I would like to attach
> ID attributes to, and then in the same session search for elements
> by those ids (getElementById).
>
> I see CoreDocumentImpl has the concept of putIdentifier and
> getIdentifier for this purpose, but was wondering if there was a
> standardized way to to this
> without relying on the impl classes.
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org