ECMAScript for XML

1 program Added 2026-03-17T05:34:06Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: E4X, ECMA-357
Provenance: commit 659f294652 · authored 2026-03-17T06:34:39+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

3 sources · pl_id: pl/ecmascript-for-xml
LLM (this repo) · 1WikipediaWikidata · Q1274178

Related languages

E4X (1.00)JavaScript (0.25)ArkTS (0.19)ECMAScript (0.17)ErgoScript (0.17)

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Programs collected by LLM agents experimental · unverified

Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.

XML Input

Provenance: commit 659f294652 · authored 2026-03-17T06:34:39+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.js · license: GNU Free Documentation License · added: 2026-03-17T05:34:06Z
var xmlstr = '<Students>' +
  '<Student Name="April" Gender="F" DateOfBirth="1989-01-02" />' +
  '<Student Name="Bob" Gender="M"  DateOfBirth="1990-03-04" />' +
  '<Student Name="Chad" Gender="M"  DateOfBirth="1991-05-06" />' +
  '<Student Name="Dave" Gender="M"  DateOfBirth="1992-07-08">' +
    '<Pet Type="dog" Name="Rover" />' +
  '</Student>' +
  '<Student DateOfBirth="1993-09-10" Gender="F" Name="&#x00C9;mily" />' +
'</Students>';
var xml = XML(xmlstr);
var list = xml.Student.@Name;
var output = '';
for (var i = 0; i < list.length(); i++) {
  if (i > 0) output += ', ';
  output += list[i];
}
alert(output);

Contribute — propose a file extension

Tell us where to find evidence about ECMAScript for XML (mapped to pl/ecmascript-for-xml). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/ECMAScript for XML/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ECMAScript eco-editor →