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 .

Name:xml.saxon.SERIALIZE
Description:
Id:xml.saxon.SERIALIZE
Category:accessor

Identifier Syntax

xml.saxon.SERIALIZE is an accessor using Active URI syntax with the following base identifiers:

Base
active:saxonSerialize
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 xml.saxon.SERIALIZE accessor you must import the module urn:org:netkernel:xml:saxon:

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

The active:saxonSerialize service performs serialization of XdmNodes.

SOURCE

Returns a binary representation of a net.sf.saxon.s9api.XdmNode.

Serialization Specifications

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

<serialize>
  <indent>yes</indent>
  <omit-declaration>yes</omit-declaration>
  <encoding>UTF-16</encoding>
  <method>html</method>
  <mimeType>text/html</mimeType>
  <doctype>
    <public>-//W3C//DTD HTML 4.01 Transitional//EN</public>
    <system>http://www.w3.org/TR/html4/loose.dtd</system>
  </doctype>
</serialize>

Where each element is optional and if omitted the default will be used.