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)

LLM-contributed programs

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);

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.)

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 →