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

Re: difference between Document and XmlDocument

From: Wendi Sisson <wsisson@east.fedex.com>
Date: Tue, 08 May 2001 10:45:16 -0500
Message-ID: <3AF8148C.A1C20F64@east.fedex.com>
To: www-dom@w3.org
I thought an interface could not be instantiated. But I am using
"Document" as if it were an object.

Joseph Kesselman wrote:
> 
> >What is the difference between the classes org.w3c.dom.Document and
> >com.sun.xml.tree.XmlDocument?
> 
> The former is part of the W3C's Document Model Object API. It's an
> Interface.
> 
> The latter isn't. (I believe it's a class which is a concrete instantiation
> of the org.w3c.dom.Document API -- one of many DOM implementations in Java
> -- but I haven't rechecked so don't take my word for it.)
> 
> ______________________________________
> Joe Kesselman  / IBM Research

-- 
Wendi Sisson
Systems Programmer
International Trade Development
FedEx Services
(901) 263-6695
Received on Tuesday, 8 May 2001 11:39:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT