module

C14N

Constants

VERSION = "1.1"
XML_NS_URI = "http://www.w3.org/XML/1998/namespace"
XMLNS_NS_URI = "http://www.w3.org/2000/xmlns/"

Class methods

c14n(xml : String, exclusive : Bool = true, inclusive_prefixes : Array(String) = [] of String, with_comments : Bool = false, xpath : String | Nil = nil) : String

Main canonicalization entry point

@param xml [String] The XML document to canonicalize @param exclusive [Bool] Use Exclusive C14N (default: true) @param inclusive_prefixes [Array(String)] Prefixes to include in Exclusive mode @param with_comments [Bool] Include comments in output @param xpath [String?] XPath expression to select document subset @return [String] Canonical XML string

Source