org.apache.cocoon.xml
Interface XMLFragment

All Superinterfaces:
XMLizable
All Known Implementing Classes:
AbstractDOMFragment, AbstractSAXFragment, ParamSaxBuffer, SaxBuffer, XMLByteStreamFragment

public interface XMLFragment
extends XMLizable

This interface must be implemented by classes willing to provide an XML representation of their current state.

This interface exists in both Cocoon 1 and Cocoon 2 and to ensure a minimal compatibility between the two versions.

Cocoon 2 only objects can implement the SAX-only XMLizable interface.

Version:
CVS $Id: XMLFragment.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Sylvain Wallez, Ricardo Rocha for the original XObject class

Method Summary
 void toDOM(Node node)
          Appends children representing the object's state to the given node.
 
Methods inherited from interface org.apache.excalibur.xml.sax.XMLizable
toSAX
 

Method Detail

toDOM

void toDOM(Node node)
           throws Exception
Appends children representing the object's state to the given node.

Throws:
Exception


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.