WARNING: This server provides a static reference view of the NetKernel documentation. Links to dynamic content do not work. For the best experience we recommend you install NetKernel and view the documentation in the live system .

Endpoint
Name:serializeDOM
Description:The active:serializeDOM service performs controlled serialization of a DOM
Id:apache.DOMSerializer
Category:accessor
Identifier Syntax

serializeDOM is an accessor using Active URI syntax with the following base identifiers:

Base
active:serializeDOM

and the following arguments: (for more details on argument passing details see here)

ArgumentRulesTypingDescription
operand
Mandatory
Representation (java.lang.Object)XML document to be serialized
operator
Optional
Representation (java.lang.Object)Custom serialization specification
Request Verbs

The following verb is supported:

Verb
SOURCE
Response

The response representation of this accessor for SOURCE requests is unknown.

This accessor throws no documented exceptions.

Import Requirements

To use serializeDOM accessor you must import the module urn:org:netkernel:xml:core:

<import>
  <uri>urn:org:netkernel:xml:core</uri>
</import>

When a request with the SOURCE verb is issued to active:serializeDOM the XML document specified in the required operand argument is serialized based on a specification provided in the optional operator argument. If the operator is not provided the default serialization is UTF-8 encoding, indented with XML declaration. By default, the response representation returned is an IBinaryStreamRepresentation.

Serialization Specifications

The operator argument may refer to a resource with a serialization specification.

<serialize>
  <indent />
  <omit-declaration />
  <encoding>UTF-16</encoding>
</serialize>

Where each element is optional and if omitted the default will be used which is to indent, include a declaration and use an encoding of UTF-8.