Start building

Transform and map

Customer data → safe XML

Build a namespaced XML response from structured data. Attributes and text are escaped by the renderer rather than concatenated into unsafe markup.

  • JSON → XML
  • Starter
  • 2 min

Last verified 2026-10-31 at f4ce7d0 — simulation fixtures

Try this template in Studio

Studio activation is a one-time payment of USD 20.

Flow

Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.

Main processXML · safe rendering3 activities

Scroll sideways to see the whole flow.

Flow diagram of XML · safe rendering3 activities and 2 transitions: Start, Render XML document, Return XML.Startstart1Render XML documentxml.render2Return XMLend3
List the 3 activities and 2 transitions

Activities

  1. Start start
  2. Render XML document xml.render
  3. Return XML end

Transitions

  • Start → Render XML document (on success)
  • Render XML document → Return XML (on success)

Walkthrough

  1. Receive customer dataUse the supplied ID and a customer name containing an ampersand.
  2. Build & render XMLThe renderer escapes text while preserving the namespace.
  3. Inspect the serialized resultCompare the captured XML string to the expected response.

What you will practise

  • Map structured data to XML elements and attributes.
  • Inspect namespace prefixes and escaped special characters.

Sample cases

1 case with 2 assertions, run with python -m server.integration examples --all in simulation.

Escaped customer name

Passed

The ampersand in the sample name is escaped.

Expected result A namespaced Order element containing the escaped name Northstar & Partners.

2/2 assertions

  • Process completes in simulation
  • Namespaced XML is rendered exactly

This sample run only; not a production certification.

Prerequisites

Runtime
Cohuno runtime 1.27.0, the version recorded when these cases last passed.
Starter
Manual start; no listener.
Optional dependencies
None beyond the base runtime.
Simulation fixtures
None: no activity in this template uses a connector.
Verification details

Provenance

What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.

Verified content

Pack SHA-256
ed749e7fcb97eebd24674a3f4c7989590b9977fdea5b390849867462f512ee2d
Closure SHA-256
1101cf1371058cc307134b74c9221e7f8749f48d69bdd0740e7b08f74325fa8b
Runtime
1.27.0
Results
1/1 cases, 2/2 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/xml_response.json
  • server/integration/templates/render_xml.json

Verification event

Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34
Verified at (UTC)
2026-10-31T21:19:21Z

How the Cohuno team reproduces this check

PYTHONPATH=. python -m server.integration examples --example xml_response
PYTHONPATH=. python scripts/export_public_gallery.py --check