org.apache.ws.jaxme.xs.impl
public class DOMSerializer extends Object
Serializes a DOM node into a stream of SAX events. This code is duplicated and copied from DOMSerializer. The reason for duplicating the code is, that the JaxMe runtime should not depend on JaxMeXS. On the other hand, JaxMeXS should not depend on JaxMe.
Version: $Id: DOMSerializer.java 231934 2004-08-27 01:03:17Z 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) Serializes the given node by firing SAX events into the
SAX 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.
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.