Class DocumentBuilder
Class DomDestination
Class DynamicContext
Class DynamicError
Class EmptyEnumerator
Class ExtensionFunctionCall
Class NullDestination
Class Processor
Class QName
Class SchemaManager
Class SchemaValidator
Class Serializer
Class StaticContext
Class StaticError
Class TextWriterDestination
Class XPathCompiler
Class XPathExecutable
Class XPathSelector
Class XQueryCompiler
Class XQueryEvaluator
Class XQueryExecutable
Class XdmAnyFunctionType
Class XdmAnyItemType
Class XdmAnyNodeType
Class XdmAtomicType
Class XdmAtomicValue
Class XdmDestination
Class XdmEmptySequence
Class XdmFunctionItem
Class XdmItem
Class XdmItemType
Class XdmNode
Class XdmNodeKind
Class XdmSequenceType
Class XdmValue
Class XmlDestination
Class XsltCompiler
Class XsltExecutable
Class XsltTransformer
Enum RecoveryPolicy
Enum SchemaValidationMode
Enum TreeModel
Enum WhitespacePolicy
Enum XdmAxis
Interface IMessageListener
Interface IQueryResolver
Interface IResultDocumentHandler
Interface IXdmEnumerator
Interface IXmlLocation
Interface SchemaResolver
public class Serializer
A Serializer
takes a tree representation of XML and turns
it into lexical XML markup.
Note that this is serialization in the sense of the W3C XSLT and XQuery specifications.
Unlike the class System.Xml.Serialization.XmlSerializer
, this object does not
serialize arbitrary CLI objects.
Constructor Summary | |
---|---|
Serializer() Create a Serializer |
Property Summary | |
---|---|
static QName |
METHOD |
static QName |
BYTE_ORDER_MARK |
static QName |
CDATA_SECTION_ELEMENTS |
static QName |
DOCTYPE_PUBLIC |
static QName |
DOCTYPE_SYSTEM |
static QName |
ENCODING |
static QName |
ESCAPE_URI_ATTRIBUTES |
static QName |
INCLUDE_CONTENT_TYPE |
static QName |
INDENT |
static QName |
MEDIA_TYPE |
static QName |
NORMALIZATION_FORM |
static QName |
OMIT_XML_DECLARATION |
static QName |
STANDALONE |
static QName |
SUPPRESS_INDENTATION |
static QName |
UNDECLARE_PREFIXES |
static QName |
USE_CHARACTER_MAPS |
static QName |
VERSION |
static QName |
SAXON_CHARACTER_REPRESENTATION |
static QName |
SAXON_INDENT_SPACES |
static QName |
SAXON_DOUBLE_SPACE |
static QName |
SAXON_SUPPRESS_INDENTATION |
static QName |
NEXT_IN_CHAIN |
static QName |
SAXON_REQUIRE_WELL_FORMED |
Method Summary | |
---|---|
void |
SetOutputProperty(QName name, string value) Set a serialization property |
void |
SetOutputFile(string filename) Specify the destination of the serialized output, in the form of a file name |
void |
SetOutputStream(System.IO.Stream stream) Specify the destination of the serialized output, in the
form of a |
void |
SetProcessor(Processor processor) Set the Processor associated with this Serializer. This will be called automatically
if the
serializer is created using one of the |
void |
SetOutputWriter(System.IO.TextWriter textWriter) Specify the destination of the serialized output, in the
form of a |
JResult |
GetResult(net.sf.saxon.event.PipelineConfiguration )
|
JProperties |
GetOutputProperties()
|
void |
Close()
|
Constructor Detail |
---|
public Serializer()
Create a Serializer
Property Detail |
---|
public static readonly QName METHOD {}
public static readonly QName BYTE_ORDER_MARK {}
public static readonly QName CDATA_SECTION_ELEMENTS {}
public static readonly QName DOCTYPE_PUBLIC {}
public static readonly QName DOCTYPE_SYSTEM {}
public static readonly QName ENCODING {}
public static readonly QName ESCAPE_URI_ATTRIBUTES {}
public static readonly QName INCLUDE_CONTENT_TYPE {}
public static readonly QName INDENT {}
public static readonly QName MEDIA_TYPE {}
public static readonly QName NORMALIZATION_FORM {}
public static readonly QName OMIT_XML_DECLARATION {}
public static readonly QName STANDALONE {}
public static readonly QName SUPPRESS_INDENTATION {}
public static readonly QName UNDECLARE_PREFIXES {}
public static readonly QName USE_CHARACTER_MAPS {}
public static readonly QName VERSION {}
public static readonly QName SAXON_CHARACTER_REPRESENTATION {}
public static readonly QName SAXON_INDENT_SPACES {}
public static readonly QName SAXON_DOUBLE_SPACE {}
public static readonly QName SAXON_SUPPRESS_INDENTATION {}
public static readonly QName NEXT_IN_CHAIN {}
public static readonly QName SAXON_REQUIRE_WELL_FORMED {}
Method Detail |
---|
public void SetOutputProperty(QName name, string value)
Set a serialization property
In the case of XSLT, properties set within the serializer override
any properties set in xsl:output
declarations in the stylesheet.
Similarly, with XQuery, they override any properties set in the Query
prolog using declare option saxon:output
.
name
-
value
-
public void SetOutputFile(string filename)
Specify the destination of the serialized output, in the form of a file name
Parameters:filename
-
public void SetOutputStream(System.IO.Stream stream)
Specify the destination of the serialized output, in the
form of a Stream
Saxon will not close the stream on completion; this is the caller's responsibility.
Parameters:stream
-
public void SetProcessor(Processor processor)
Set the Processor associated with this Serializer. This will be called automatically
if the
serializer is created using one of the Processor.NewSerializer()
methods.
processor
-
public void SetOutputWriter(System.IO.TextWriter textWriter)
Specify the destination of the serialized output, in the
form of a TextWriter
Note that when writing to a TextWriter
, character encoding is
the responsibility of the TextWriter
, not the Serializer
. This
means that the encoding requested in the output properties is ignored; it also
means that characters that cannot be represented in the target encoding will
use whatever fallback representation the TextWriter
defines, rather than
being represented as XML character references.
textWriter
-
textWriter
on completion; this is the caller's responsibility.
public override JResult GetResult(net.sf.saxon.event.PipelineConfiguration )
public override JProperties GetOutputProperties()
public override void Close()