Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 18040 invoked by uid 500); 30 Apr 2001 17:57:41 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 17657 invoked by uid 1203); 30 Apr 2001 17:57:34 -0000 Date: 30 Apr 2001 17:57:34 -0000 Message-ID: <20010430175734.17656.qmail@apache.org> From: dims@apache.org To: xml-cocoon-cvs@apache.org Subject: cvs commit: xml-cocoon/src/org/apache/cocoon/xml/dom DOMBuilder.java dims 01/04/30 10:57:33 Modified: src/org/apache/cocoon/xml/dom Tag: xml-cocoon2 DOMBuilder.java Added: src/org/apache/cocoon/xml Tag: xml-cocoon2 AbstractDOMFragment.java AbstractSAXFragment.java Log: XMLFragment helper implementations - Patch from Sylvain. Revision Changes Path No revision No revision 1.1.2.1 +69 -0 xml-cocoon/src/org/apache/cocoon/xml/Attic/AbstractDOMFragment.java 1.1.2.1 +37 -0 xml-cocoon/src/org/apache/cocoon/xml/Attic/AbstractSAXFragment.java No revision No revision 1.1.2.14 +19 -2 xml-cocoon/src/org/apache/cocoon/xml/dom/Attic/DOMBuilder.java Index: DOMBuilder.java =================================================================== RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/xml/dom/Attic/DOMBuilder.java,v retrieving revision 1.1.2.13 retrieving revision 1.1.2.14 diff -u -r1.1.2.13 -r1.1.2.14 --- DOMBuilder.java 2001/04/30 14:17:47 1.1.2.13 +++ DOMBuilder.java 2001/04/30 17:57:30 1.1.2.14 @@ -36,7 +36,7 @@ * * @author Pierpaolo Fumagalli * (Apache Software Foundation, Exoffice Technologies) - * @version CVS $Revision: 1.1.2.13 $ $Date: 2001/04/30 14:17:47 $ + * @version CVS $Revision: 1.1.2.14 $ $Date: 2001/04/30 17:57:30 $ */ public class DOMBuilder implements XMLConsumer, Loggable { protected Logger log; @@ -105,7 +105,24 @@ } /** - * Return the newly built Document. + * Constructs a new instance that appends nodes to the given parent node.
+ * Note : you cannot use a Listener when appending to a + * Node, because the notification occurs at endDocument() + * which does not happen here. + */ + + public DOMBuilder(Node parentNode) { + // Set the document as the owner of this node + this.document = parentNode.getOwnerDocument(); + // Create a namespace table + this.namespaces=new NamespacesTable(); + // Set the current node + this.current = parentNode; + // Go directly to BODY state + this.state = S_BODY; + } + + /** * Return the newly built Document. */ public Document getDocument() { return(this.document); ---------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-cvs-help@xml.apache.org