Skip to content

namespaceUri

namespaceUri(element) → string · XML

Extract the namespace URI from an XML element. See Chapter 22.

  • element (required): XML UDM element
utlx
{
  ns: namespaceUri($input)                   // "urn:oasis:names:specification:ubl:..."
}
utlx
// Use case: filter XML elements by namespace (XBRL taxonomy)
let usgaapFacts = filter($input.*, (elem) ->
  namespaceUri(elem) == "http://fasb.org/us-gaap/2024"
)
{
  facts: usgaapFacts
}

Released under AGPL-3.0.