1 /* 2 * Copyright (C) The Apache Software Foundation. All rights reserved. 3 * 4 * This software is published under the terms of the Apache Software License 5 * version 1.1, a copy of which has been included with this distribution in 6 * the LICENSE.txt file. 7 */ 8 package org.apache.avalon.excalibur.xml; 9 10 import org.w3c.dom.DOMException; 11 import org.w3c.dom.Node; 12 13 /** 14 * This interface must be implemented by classes willing 15 * to provide an XML representation of their current state. 16 * <br/> 17 * 18 * @author <a HREF="mailto:sylvain.wallez@anyware-tech.com">Sylvain Wallez</a> 19 * @author <a HREF="mailto:ricardo@apache.org">Ricardo Rocha</a> for the original XObject class 20 * @version CVS $Revision: 1.3 $ $Date: 2001/12/11 09:53:38 $ 21 */ 22 23 public interface XMLFragment { 24 25 /** 26 * Appends children representing the object's state to the given node. 27 */ 28 void toDOM(Node node) throws DOMException; 29 } 30