org.apache.ws.jaxme.util
public class DOMSerializer extends Object
Serializes a DOM node into a stream of SAX events.
Version: $Id: DOMSerializer.java 232067 2005-03-10 10:14:08Z jochen $
Method Summary | |
---|---|
protected void | doSerialize(Node pNode, ContentHandler pHandler) |
protected void | doSerializeChilds(Node pNode, ContentHandler pHandler) |
protected void | endPrefixMappingEvents(Node pNode, ContentHandler pHandler) |
boolean | isNamespaceDeclarationAttribute() Returns whether XML declarations are being serialized as attributes or as SAX events (default). |
boolean | isParentsNamespaceDeclarationDisabled() Sets whether XML declarations present in the parent nodes are being serialized (default) or not. |
protected void | parentsEndPrefixMappingEvents(Node pNode, ContentHandler pHandler) |
protected void | parentsStartPrefixMappingEvents(Node pNode, ContentHandler pHandler) |
void | serialize(Node pNode, ContentHandler pHandler) Converts the given node pNode into a
stream of SAX events, which are fired into the
content handler pHandler . |
void | setNamespaceDeclarationAttribute(boolean pXmlDeclarationAttribute) Sets whether XML declarations are being serialized as attributes or as SAX events (default). |
void | setParentsNamespaceDeclarationDisabled(boolean pParentsXmlDeclarationDisabled) Returns whether XML declarations present in the parent nodes are being serialized (default) or not. |
protected void | startPrefixMappingEvents(Node pNode, ContentHandler pHandler) |
Returns whether XML declarations are being serialized as attributes or as SAX events (default).
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.
pNode
into a
stream of SAX events, which are fired into the
content handler pHandler
.Sets whether XML declarations are being serialized as attributes or as SAX events (default).
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.