Re: difference between Document and XmlDocument

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 UTC