org.apache.ws.jaxme.xs.impl
Class DOMSerializer
java.lang.Object
org.apache.ws.jaxme.xs.impl.DOMSerializer
public class DOMSerializer
extends java.lang.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.
$Id: DOMSerializer.java 231934 2004-08-27 03:03:17 +0200 (Fri, 27 Aug 2004) 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
Serializes the given node by firing SAX events into the
SAX 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