Skip to content

c14nEquals

c14nEquals(xml1, xml2) → boolean · XML

Compare two XML documents semantically (ignoring formatting differences) by comparing their canonical forms. See Chapter 22.

  • xml1 (required): first XML UDM value

  • xml2 (required): second XML UDM value

utlx
{
  match: c14nEquals($input.expected, $input.actual),
  status: if (c14nEquals($input.expected, $input.actual)) "PASS" else "FAIL"
}

Released under AGPL-3.0.