diff options
Diffstat (limited to 'src/java/org/apache/fop/util/DOM2SAX.java')
-rw-r--r-- | src/java/org/apache/fop/util/DOM2SAX.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/util/DOM2SAX.java b/src/java/org/apache/fop/util/DOM2SAX.java index 839cf107f..b9021ed3a 100644 --- a/src/java/org/apache/fop/util/DOM2SAX.java +++ b/src/java/org/apache/fop/util/DOM2SAX.java @@ -77,6 +77,15 @@ public class DOM2SAX { contentHandler.endDocument(); } } + + /** + * Writes the given fragment using the given ContentHandler. + * @param node DOM node + * @throws SAXException In case of a problem while writing XML + */ + public void writeFragment(Node node) throws SAXException { + writeNode(node); + } /** * Begin the scope of namespace prefix. Forward the event to the SAX handler |