W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1998

Request: DocumentFactory

From: Chris Hubick <maillist@chris.hubick.com>
Date: Tue, 22 Sep 1998 04:02:14 +0000 (GMT)
To: www-dom@w3.org
Message-ID: <Pine.LNX.3.96.980922034801.15845B-100000@chris.hubick.com>

A standardized DocumentFactory interface would be nice, just something
simple like:

---
package org.w3c.dom;

public interface DocumentFactory {

  public Document makeDocument();

}
---

A standardized factory interface would make it easier for applications to
use multiple, or switch between, DOM implementations.  Each DOM 
implementor could implement this interface, returning a Document from 
their implementation.  Applications which build DOM hierarchies could
take a DocumentFactory as an argument allowing them to be implementation
independant.

---
Chris Hubick
mailto:chris@hubick.com
http://www.hubick.com/
Received on Tuesday, 22 September 1998 07:07:48 GMT

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