Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #124301
| From | Mild Shock <janburse@fastmail.fm> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] |
| Date | 2024-03-13 14:06 +0100 |
| Message-ID | <uss8d4$1a6on$1@solani.org> (permalink) |
| References | <usquog$19ifk$1@solani.org> <1clu637150wl5.locsf12fk0z0.dlg@40tude.net> <uss6s7$1a5rg$1@solani.org> <uss81o$1a6hb$1@solani.org> |
So maybe we have found the first weak spot
in the feature matrice, where still a 3rd party
is needed. Namely a replacement for:
XMLHttpRequest.responseXML
In my case for Dogelog Player, since there is
nowhere some support of XML, except for a
module library(markup) which supports creating
XML, but reading of XML is not in the scope,
I don't have any such requirement, to have
an isomorphic library that also supports
XMLHttpRequest.responseXML, so I am not affected,
by this gap in the isomorphism. But other projects
might be indeed affected. Anyway might post
should be read in the context I posted it. I
remarked for Dogelog Player, that it is now
fetch() everywhere. Which is possible since we
currently have no XML reading requirement.
Mild Shock schrieb:
> The internet is full of fetch examples, where
> some JSON is fetched and then converted into DOM.
> Thats the alternative world, alternative to
>
> the world, where one would directly fetch XML,
> and add it to the DOM. The JSON might also come
> from a web socket. It implements a kind of
>
> Model–view–controller
> https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller
>
> At least if one indentifies the JSON with the model
> and the XML with the view. There are also many
> frameworks like angularJS that support such MVC.
>
> But then there is svelte, which is more DOM based
> again. Pros and cons of fetch versus XHR is wide
> field. My choice of fetch isn't based on any of
>
> such comparison. All that counts for my choice is
> "no 3rd party dependence". But you can also
> more directly fetch XML with fetch(), like here:
>
> async function display(){
> const xmlFetch = await fetch("./yourXMLorXSL.xml")
> const xmlText = await xmlFetch.text()
> const xml = (new DOMParser()).parseFromString(xmlText, "text/xml")
> console.log(xml)
> }
>
> Which would be a replacement of XMLHttpRequest: responseXML,
> expressed in "direct style" programming with
> async/await. Not the promise/thenable hell with .then().
>
> But DOMParser isn't natively available on node.JS right?
> You would need a third party in node.JS?
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar
Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-13 02:16 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-13 02:35 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-13 12:57 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-13 13:01 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] John Harris <niam@jghnorth.org.uk.invalid> - 2024-03-13 14:57 +0000
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-13 17:02 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] John Harris <niam@jghnorth.org.uk.invalid> - 2024-03-14 18:58 +0000
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-15 10:00 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] John Harris <niam@jghnorth.org.uk.invalid> - 2024-03-15 14:06 +0000
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-15 16:05 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] John Harris <niam@jghnorth.org.uk.invalid> - 2024-03-16 15:11 +0000
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-16 18:11 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-16 18:18 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-16 18:30 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-16 19:01 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-16 19:05 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-16 19:08 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] John Harris <niam@jghnorth.org.uk.invalid> - 2024-03-18 14:35 +0000
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-18 18:49 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] John Harris <niam@jghnorth.org.uk.invalid> - 2024-03-19 10:50 +0000
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-19 14:27 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-13 17:04 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-13 17:13 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-29 00:28 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-29 00:32 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-29 00:42 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-29 00:46 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-29 00:47 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] JJ <jj4public@outlook.com> - 2024-03-13 19:24 +0700
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-13 13:40 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-13 14:00 +0100
Re: Difference between 3rd party and native [Confusion by Lawrence D'Oliveiro] Mild Shock <janburse@fastmail.fm> - 2024-03-13 14:06 +0100
csiph-web