xpath.SerializationParams

The xpath.SerializationParams class represents the serialization parameters used in xslt and xquery, as described in the XSLT and XQuery Serialization 3.1 spec.

class xpath.SerializationParams(Session session, bool _report_unknown_args=True, *, **kwargs)

Attributes

xpath.SerializationParams.allow_duplicate_names

A bool value indicating if a JSON object is allowed to contain duplicate names

xpath.SerializationParams.byte_order_mark

Indicates whether the serialized sequence of octets is to be preceded by a Byte Order Mark

xpath.SerializationParams.cdata_section_elements

A list of resolved element names where the text childrens should be output non-escaped as CDATA sections

xpath.SerializationParams.character_map
xpath.SerializationParams.doctype_public

A string specifying the public doctype

xpath.SerializationParams.doctype_system

A string specifying the system doctype

xpath.SerializationParams.encoding

The selected string encoding

xpath.SerializationParams.end_of_line_characters

The characters used as line ending

xpath.SerializationParams.escape_uri_attributes

Escape HTML uri attributes

xpath.SerializationParams.html_version

The selected html version

xpath.SerializationParams.include_content_type

Bool value

xpath.SerializationParams.indent

Enable insertion of non-significant whitespace

xpath.SerializationParams.indent_characters

The characters used for indentation

xpath.SerializationParams.item_separator

The selected item separator

xpath.SerializationParams.json_node_output_method
xpath.SerializationParams.media_type

A string specifying the media type

xpath.SerializationParams.method
xpath.SerializationParams.normalization_form
xpath.SerializationParams.omit_xml_declaration

Bool value

xpath.SerializationParams.output_version
xpath.SerializationParams.standalone
xpath.SerializationParams.suppress_indentation

A list of resolved element names where the indentation should be suppressed

xpath.SerializationParams.undeclare_prefixes

Enable outputing namespace undeclarations in XML 1.1

xpath.SerializationParams.use_character_maps

Names of character maps to use

Special methods

__eq__, __ge__, __gt__, __le__, __lt__, __ne__