W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2003

Re: simple dom implementation

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Tue, 8 Apr 2003 16:46:45 -0400
To: Joris Huizer <joris_huizer@yahoo.com>
Cc: www-dom@w3.org
Message-ID: <OF235C56CD.493C088D-ON85256D02.0070F5DA-85256D02.007225F1@us.ibm.com>
Depends on the value. If it's a manefest constant, #define or a static 
final value is probably the right answer; if it's a value that varies from 
node to node, you want an exposed field or a getter method or something of 
that sort. (I'd suggest the getter, personally.)

Note that some C++ implementations already exist; even if you're writing 
your own, you might want to look at their APIs as examples. See 
http://www.w3.org/DOM/Bindings for some of them. Note that in C++ you have 
to make a difficult decision about memory management, which the reference 
bindings were able to dodge since they were written in garbage-collected 

Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. 
"may'ron DaroQbe'chugh vaj bIrIQbej"  ("Put down the squeezebox and nobody 
gets hurt.")
Received on Tuesday, 8 April 2003 16:47:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:11 UTC