XML Data Engine & Tabular Explorer

How to parse, compute, and render structured XML datasets at build-time and interactively with Carbon Design System components.

The Carbon Modular Engine includes native XML dataset integration, enabling build-time statistical parsing and high-performance client-side exploration of hierarchical XML data without third-party dependencies.


1. Declarative XML Table Shortcode

The {{< xml-table >}} shortcode ingests raw XML files (such as telemetry logs, power grid feeds, institutional registries, or sensor matrices), computes key performance indicators at build time, and renders an accessible Carbon Design System data table:

XML DATASET 10 Records

European Renewable Energy & Carbon Telemetry

Structured XML Dataset Explorer

Active Nodes
10
100% Operational
Total Capacity
5540.5 MW
Installed Clean Output
Actual Generation
5058.5 MW
Real-time Telemetry
Mean Efficiency
89.5%
High Yield Band
Showing 10 records
Node NameCountry / RegionCapacityOutputEfficiencyCarbon (g/kWh)Status
Lisbon Solar & Ocean Terminal
Portugal
Europe South
480.5 MW412.3 MW85.8%14.2Optimal
Madrid Solar Highlands
Spain
Europe South
620.0 MW545.6 MW88.0%18.6Optimal
Paris Seine Hydro-Kinetic
France
Europe Central
310.0 MW285.4 MW92.1%9.5Optimal
London Thames Tidal Array
United Kingdom
Europe West
250.0 MW198.7 MW79.5%22.4Operational
Berlin Wind Park Brandenburg
Germany
Europe Central
750.0 MW680.2 MW90.7%16.8Optimal
Amsterdam Offshore Wind Hub
Netherlands
Europe West
820.0 MW760.5 MW92.7%11.3Optimal
Brussels Distributed Bio-Grid
Belgium
Europe West
180.0 MW145.0 MW80.6%28.1Operational
Copenhagen Øresund Wind Cluster
Denmark
Europe North
540.0 MW510.8 MW94.6%7.9Optimal
Stockholm Hydro Dynamic Station
Sweden
Europe North
910.0 MW885.0 MW97.3%4.2Optimal
Zurich Alpine Pumped Storage
Switzerland
Europe Central
680.0 MW635.0 MW93.4%6.1Optimal

2. Key Architecture Features

  • Build-Time Computation: Pre-computes total records, cumulative capacity, mean output, and generation efficiency at compile time via Hugo’s native transform.Unmarshal engine, ensuring instant first-contentful-paint (FCP).
  • Client-Side Live Filtering: Instant live text filtering and column sorting across all numeric and string columns powered by assets/js/xml-engine.js.
  • Zero Runtime Dependencies: Native browser DOMParser and DOM manipulation with zero heavy table libraries.
  • Direct Data Download: Includes one-click direct download of the underlying XML document.
  • Strict Carbon Design Tokens: Zebra striping, compact row heights, monospace telemetry identifiers, and color-coded status badges.

3. Shortcode Parameter Reference

ParameterTypeDefaultDescription
srcString(Required)Static URL path to the .xml file (e.g. /data/telemetry.xml).
titleString"XML Data Explorer"Heading displayed above the dataset.
descriptionString""Optional subtitle or contextual metadata summary.
pageSizeNumber10Default visible rows per page.
idStringAuto-generatedUnique DOM identifier for the table container.