Serializes the node (and if
noRecurse
is
false
, the whole subtree) at
absPath
into a series of SAX events by calling the methods of the supplied
org.xml.sax.ContentHandler
. The resulting XML is in the document view form. Note that
absPath
must be the path of a node, not a property.
If skipBinary
is true then any properties of PropertyType.BINARY
will be serialized as if they are empty. That is, the existence of the property will be serialized, but its content will not appear in the serialized output (the value of the attribute will be empty). If skipBinary
is false then the actual value(s) of each BINARY
property is recorded using Base64 encoding.
If noRecurse
is true then only the node at absPath
and its properties, but not its child nodes, are serialized. If noRecurse
is false
then the entire subtree rooted at absPath
is serialized.
If the user lacks read access to some subsection of the specified tree, that section simply does not get serialized, since, from the user's point of view, it is not there.
The serialized output will reflect the state of the current workspace as modified by the state of this Session
. This means that pending changes (regardless of whether they are valid according to node type constraints) and the current session-mapping of namespaces are reflected in the output.
A PathNotFoundException
is thrown if no node exists at absPath
.
A SAXException
is thrown if an error occurs while feeding events to the ContentHandler
.
@param absPath The path of the root of the subtree to be serialized.This must be the path to a node, not a property
@param contentHandler The org.xml.sax.ContentHandler
towhich the SAX events representing the XML serialization of the subtree will be output.
@param skipBinary A boolean
governing whether binaryproperties are to be serialized.
@param noRecurse A boolean
governing whether the subtree atabsPath is to be recursed.
@param exportChildVersionHisotry A boolean
governing whether child nodes version histories must be included into resulting xml.
@throws PathNotFoundException if no node exists at absPath
.
@throws org.xml.sax.SAXException if an error occurs while feeding events to theorg.xml.sax.ContentHandler
.
@throws RepositoryException if another error occurs.