Good afternoon.
I am pleased to inform that project "json2xml" now has support of the
functionality of function "json-to-xml" as provided by the
specification of XPath 3.1 version.
https://w3.org/TR/xpath-functions-31/#func-json-to-xml
from json2xml import json2xml
data = {"name": "John", "age": 30}
xml = json2xml.Json2xml(data, xpath_format=True, pretty=True).to_xml()
print(xml)
https://github.com/vinitkumar/json2xml/pull/259
Thank you to Mr. Vinit Kumar from Pune of Maharashtra of India.
https://vinitkumar.me
P.S. Please. Kindly try "json2xml" to further confirm of it working.
Kind regards,
Schimon
On Tue, 2 Dec 2025 17:06:52 -0000
"Schimon Jehudah sch@xxxxxxxxxxxx"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> Good evening.
>
> I have recently asked at several Python projects that involve XML, to
> support the concersion of JSON to XML as does function json-to-xml of
> XPath 3.1 version.
>
> Mr. Vinit Kumar has acted upon this request, and he asked me to test
> it.
>
> I am not available to test it, for a couple of days or so; and, I
> would be glad if someone would kindly assist and confirm that it
> works as should.
>
> https://github.com/vinitkumar/json2xml/pull/259#issuecomment-3595273272
>
> Best regards,
> Schimon
|