org.apache.ws.jaxme.util
Class DOMSerializer
java.lang.Object
org.apache.ws.jaxme.util.DOMSerializer
public class DOMSerializer
extends java.lang.Object
Serializes a DOM node into a stream of SAX events.
$Id: DOMSerializer.java 232067 2005-03-10 10:14:08Z jochen $
doSerialize
protected void doSerialize(Node pNode,
ContentHandler pHandler)
throws SAXException
doSerializeChilds
protected void doSerializeChilds(Node pNode,
ContentHandler pHandler)
throws SAXException
endPrefixMappingEvents
protected void endPrefixMappingEvents(Node pNode,
ContentHandler pHandler)
throws SAXException
isNamespaceDeclarationAttribute
public boolean isNamespaceDeclarationAttribute()
Returns whether XML declarations are being serialized as
attributes or as SAX events (default).
isParentsNamespaceDeclarationDisabled
public boolean isParentsNamespaceDeclarationDisabled()
Sets whether XML declarations present in the parent nodes
are being serialized (default) or not. This option takes effect
only if the namespace declarations are sent as events. In other
words, if the namespaceDeclarationAttribute
properts is false.
parentsEndPrefixMappingEvents
protected void parentsEndPrefixMappingEvents(Node pNode,
ContentHandler pHandler)
throws SAXException
parentsStartPrefixMappingEvents
protected void parentsStartPrefixMappingEvents(Node pNode,
ContentHandler pHandler)
throws SAXException
serialize
public void serialize(Node pNode,
ContentHandler pHandler)
throws SAXException
Converts the given node pNode
into a
stream of SAX events, which are fired into the
content handler pHandler
.
setNamespaceDeclarationAttribute
public void setNamespaceDeclarationAttribute(boolean pXmlDeclarationAttribute)
Sets whether XML declarations are being serialized as
attributes or as SAX events (default).
setParentsNamespaceDeclarationDisabled
public void setParentsNamespaceDeclarationDisabled(boolean pParentsXmlDeclarationDisabled)
Returns whether XML declarations present in the parent nodes
are being serialized (default) or not. This option takes effect
only if the namespace declarations are sent as events. In other
words, if the namespaceDeclarationAttribute
properts is false.
startPrefixMappingEvents
protected void startPrefixMappingEvents(Node pNode,
ContentHandler pHandler)
throws SAXException