Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 package org.apache.xmlrpc.serializer;
00020
00021 import org.apache.ws.commons.serialize.DOMSerializer;
00022 import org.w3c.dom.Node;
00023 import org.xml.sax.ContentHandler;
00024 import org.xml.sax.SAXException;
00025
00026
00029 public class NodeSerializer extends ExtSerializer {
00030 private static final DOMSerializer ser = new DOMSerializer();
00031 static {
00032 ser.setStartingDocument(false);
00033 }
00034
00037 public static final String DOM_TAG = "dom";
00038
00039 protected String getTagName() { return DOM_TAG; }
00040
00041 protected void serialize(ContentHandler pHandler, Object pObject) throws SAXException {
00042 ser.serialize((Node) pObject, pHandler);
00043 }
00044 }