Subject: Re: [xsl] Convert JSON to XML? From: "Peter Flynn peter@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 2 May 2025 13:37:16 -0000 |
On 02/05/2025 13:07, Michael B Allen ioplex@xxxxxxxxx wrote: [...]
For example, it is commonplace to do something like the following:
<address> \xA0 <street>123 Main St</street> \xA0 <city>Townville</city> \xA0 <state>PA</state> </address>
IMO the "correct" form for an XML element is to put values that are not divisible into attributes
which means the truly correct way to represent this data is:
<address \xA0 street="123 Main St" \xA0 city="Townville" \xA0 state="PA"/>
Anyway, my point is that the only "correct" way to convert JSON to XML is to understand in advance which of the many XML representations is "correct" for your particular application and then write code to explicitly perform that conversion.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Convert JSON to XML?, Martynas Jusevičius | Thread | Re: [xsl] Convert JSON to XML?, Tony Graham tgraham@ |
Re: [xsl] Convert JSON to XML?, Edward Porter edward | Date | Re: [xsl] What is the correct xpath, ajbufort@xxxxxxxxxxx |
Month |