Re: An XML document is an information resource (series of octets) ... yes?
Rick Jelliffe <[email protected]> Fri, 5 Apr 2024 15:05:35 +1100
| Newsgroups | gmane.text.xml.devel |
|---|---|
| Message-ID | <CADUdYQXwz+hXpudrEoDRp_foPxEGN=O+E+P4S1VR1Z_y=Oa3xA@mail.gmail.com> |
--0000000000000306c00615519295 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I think that sentence is saying something slightly different. It is saying "the specification for JSON that this RFC uses is the RFC for MIME media type application/json", i.e. RFC 4627 and successors. See https://datatracker.ietf.org/doc/html/rfc4627.html The specification for application/xml is RFC 7303 and successors. See https://datatracker.ietf.org/doc/rfc7303/ Unlike with JSON, this specification does not define XML per se but refers back to W3C XML 1.0 (FifthEdition). Regards Rick On Tue, Jun 20, 2023 at 10:36=E2=80=AFPM Roger L Costello <[email protected]= rg> wrote: > Hi Folks, > > This document [1] defines JSON documents this way: > > A JSON document is an information resource (series of octets) described b= y > the application/json media type. > > Would it be correct to define XML documents in an analogous way: > > An XML document is an information resource (series of octets) described b= y > the application/xml media type. > > Two More Questions: > > 1. What is an "information resource"? > > 2. The parenthetical remark seems to imply that an information resource i= s > a "series of octets". Is an information resource a series of octets? > > /Roger > > [1] > https://json-schema.org/draft/2020-12/json-schema-core.html#name-json-doc= ument > > _______________________________________________________________________ > > XML-DEV is a publicly archived, unmoderated list hosted by OASIS > to support XML implementation and development. To minimize > spam in the archives, you must subscribe before posting. > > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ > Or unsubscribe: [email protected] > subscribe: [email protected] > List archive: http://lists.xml.org/archives/xml-dev/ > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php > > --0000000000000306c00615519295 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>I think that sentence is saying something slightly di= fferent.</div><div><br></div><div>It is saying "the specification for = JSON that this RFC uses is the RFC for MIME media type application/json&quo= t;, i.e. RFC 4627 and successors.=C2=A0=C2=A0 See=C2=A0=C2=A0 <a href=3D"ht= tps://datatracker.ietf.org/doc/html/rfc4627.html" target=3D"_blank">https:/= /datatracker.ietf.org/doc/html/rfc4627.html</a></div><div><br></div><div>Th= e specification for application/xml is=C2=A0 RFC 7303 and successors. See <= a href=3D"https://datatracker.ietf.org/doc/rfc7303/" target=3D"_blank">http= s://datatracker.ietf.org/doc/rfc7303/</a>=C2=A0=C2=A0 Unlike with JSON, thi= s specification does not define XML per se but refers back to W3C XML 1.0 (= FifthEdition).<br></div><div><br></div><div>Regards</div><div>Rick<br></div= ></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr"= >On Tue, Jun 20, 2023 at 10:36=E2=80=AFPM Roger L Costello <<a href=3D"m= ailto:[email protected]" target=3D"_blank">[email protected]</a>> wrot= e:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0= .8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Folks,<br> <br> This document [1] defines JSON documents this way:<br> <br> A JSON document is an information resource (series of octets) described by = the application/json media type.<br> <br> Would it be correct to define XML documents in an analogous way:<br> <br> An XML document is an information resource (series of octets) described by = the application/xml media type.<br> <br> Two More Questions:<br> <br> 1. What is an "information resource"?<br> <br> 2. The parenthetical remark seems to imply that an information resource is = a "series of octets". Is an information resource a series of octe= ts?<br> <br> /Roger<br> <br> [1] <a href=3D"https://json-schema.org/draft/2020-12/json-schema-core.html#= name-json-document" rel=3D"noreferrer" target=3D"_blank">https://json-schem= a.org/draft/2020-12/json-schema-core.html#name-json-document</a><br> <br> _______________________________________________________________________<br> <br> XML-DEV is a publicly archived, unmoderated list hosted by OASIS<br> to support XML implementation and development. To minimize<br> spam in the archives, you must subscribe before posting.<br> <br> [Un]Subscribe/change address: <a href=3D"http://www.oasis-open.org/mlmanage= /" rel=3D"noreferrer" target=3D"_blank">http://www.oasis-open.org/mlmanage/= </a><br> Or unsubscribe: <a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a><br> subscribe: <a href=3D"mailto:[email protected]" target=3D"_bl= ank">[email protected]</a><br> List archive: <a href=3D"http://lists.xml.org/archives/xml-dev/" rel=3D"nor= eferrer" target=3D"_blank">http://lists.xml.org/archives/xml-dev/</a><br> List Guidelines: <a href=3D"http://www.oasis-open.org/maillists/guidelines.= php" rel=3D"noreferrer" target=3D"_blank">http://www.oasis-open.org/maillis= ts/guidelines.php</a><br> <br> </blockquote></div> --0000000000000306c00615519295--