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.
Last verified 2026-10-31 at f4ce7d0 — simulation fixtures
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.
Scroll sideways to see the whole flow.
List the 3 activities and 2 transitions
Activities
- Start
start - Render XML document
xml.render - Return XML
end
Transitions
- Start → Render XML document (on success)
- Render XML document → Return XML (on success)
Walkthrough
- Receive customer dataUse the supplied ID and a customer name containing an ampersand.
- Build & render XMLThe renderer escapes text while preserving the namespace.
- 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
PassedThe 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.jsonserver/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