Proposal: native XML object support.

liorean liorean at
Mon May 20 07:03:04 UTC 2019

You could already do something like this:

      RawXML=xml`<some-element some-attribute="${some_variable}">some
     ,XMLApplication=rss`<rss version="2.0">
        <title>RSS Title</title>
        <description>This is an example of an RSS feed</description>
        <lastBuildDate>Mon, 06 Sep 2010 00:01:00 +0000 </lastBuildDate>
        <pubDate>Sun, 06 Sep 2009 16:20:00 +0000</pubDate>
          <title>Example entry</title>
          <description>Here is some text containing an interesting
           <pubDate>Sun, 06 Sep 2009 16:20:00 +0000</pubDate>
    </rss> ` // rss example courtesy wikipedia

And all you'd need is an XML parser for EcmaScript tagged templates, or for
a specific XML application such as RSS, an application specific handler
which would probably be layered on top of such an XML parser. And XML is
actually not that hard to parse, in difference to HTML, thanks to its
draconic error handling. It's actually the XML application handlers that
might get more involved.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list