
Product
Introducing Supply Chain Attack Campaigns Tracking in the Socket Dashboard
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.
xml-c14n
Advanced tools
= XML pretty-print / canonicalizer / RSpec comparator
== Purpose
This gem provides Xml::C14n which is a library that uses Nokogiri
to pretty-print and provide a canonicalized form of XML
(https://www.w3.org/TR/xml-c14n11/[W3C Canonicalized XML]) suitable
for signing and comparison.
This gem also provides the RSpec matcher be_analogous_with for comparing XML
content. The matcher used is from the
https://github.com/vkononov/compare-xml[`compare-xml`] gem.
== Usage
require 'xml/c14n'
input = Xml::C14n.format(File.read(xml_raw)) output = Xml::C14n.format(File.read(xml_c14n))
In RSpecs:
require 'xml/c14n'
it "canonicalizes #{File.basename(f)}" do input = Xml::C14n.format(File.read(xml_raw)) output = Xml::C14n.format(File.read(xml_c14n))
expect(output).to eq(input) end
it "checks if analogous with #{File.basename(f)}" do input = Xml::C14n.format(File.read(xml_raw)) output = Xml::C14n.format(File.read(xml_c14n))
== License
Copyright Ribose.
FAQs
Unknown package
We found that xml-c14n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Security News
Node.js 25.4.0 makes require(esm) stable, formalizing CommonJS and ESM compatibility across supported Node versions.