XMLSchema support in LUA

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

XMLSchema support in LUA

Sudheer Hebbale
Hello.

Is there any effort being put by anyone to support XMLSchema within LUA.

A library similar to python library https://xmlschema.readthedocs.io/en/latest/index.html providing interoperability among JSON, LUA and XML will be very useful.

This can come along with the validation of XML documents or LUA tables, using the rules as specified by XSD or by schematron specifications

Any pointer in this regard is highly appreciated

Regards,
Sudheer

Reply | Threaded
Open this post in threaded view
|

Fwd: XMLSchema support in LUA

Sudheer Hebbale
Towards the goal mentioned in the email below, I have put efforts towards building a project, which will have 3 modules

1. Converting a lua data structure to XML/JSON
2. Converting an XML/JOSN to lua based on XSD grammar
3. Generating the metadata of Schema in LUA based on input XSD

The first 2 modules are partially complete in the library https://github.com/Tekenlight/lua_schema that I have been working on
The 3rd module needs to be done and the same needs to be strengthened with testing, documentation etc...

Anyone interested to contribute can write back

Sudheer

---------- Forwarded message ---------
From: Sudheer Hebbale <[hidden email]>
Date: Sun, Jul 5, 2020 at 8:43 PM
Subject: XMLSchema support in LUA
To: <[hidden email]>


Hello.

Is there any effort being put by anyone to support XMLSchema within LUA.

A library similar to python library https://xmlschema.readthedocs.io/en/latest/index.html providing interoperability among JSON, LUA and XML will be very useful.

This can come along with the validation of XML documents or LUA tables, using the rules as specified by XSD or by schematron specifications

Any pointer in this regard is highly appreciated

Regards,
Sudheer

Reply | Threaded
Open this post in threaded view
|

Re: XMLSchema support in LUA

Petite Abeille


> On Mar 22, 2021, at 15:39, Sudheer Hebbale <[hidden email]> wrote:
>
> Towards the goal mentioned in the email below, I have put efforts towards building a project, which will have 3 modules

Cool.

Tangentially related: curl + pup + gron [1][2][3].

# curl -s https://textprotocol.org/ | pup 'json{}' | gron | grep 'href = ' | head
json[0].children[0].children[0].children[18].href = "https://textprotocol.org/";
json[0].children[0].children[0].children[19].href = "apple-touch-icon.png";
json[0].children[0].children[0].children[20].href = "https://textprotocol.org/contact";
json[0].children[0].children[0].children[21].href = "https://textprotocol.org/";
json[0].children[0].children[0].children[22].href = "favicon-16x16.png";
json[0].children[0].children[0].children[23].href = "favicon-32x32.png";
json[0].children[0].children[0].children[24].href = "https://github.com/textprotocol/textprotocol.github.io/blob/main/LICENSE";
json[0].children[0].children[0].children[25].href = "site.webmanifest";
json[0].children[0].children[0].children[26].href = "https://textprotocol.org/contact";
json[0].children[0].children[0].children[27].href = "https://webmention.io/textprotocol.org/xmlrpc";

±0¢

[1] https://curl.se
[2] https://github.com/ericchiang/pup
[3] https://github.com/tomnomnom/gron
Reply | Threaded
Open this post in threaded view
|

Re: XMLSchema support in LUA

Sudheer Hebbale
Excellent stuff.

Liked both pup and gron, very useful


On Mon, Mar 22, 2021 at 9:30 PM Petite Abeille <[hidden email]> wrote:


> On Mar 22, 2021, at 15:39, Sudheer Hebbale <[hidden email]> wrote:
>
> Towards the goal mentioned in the email below, I have put efforts towards building a project, which will have 3 modules

Cool.

Tangentially related: curl + pup + gron [1][2][3].

# curl -s https://textprotocol.org/ | pup 'json{}' | gron | grep 'href = ' | head
json[0].children[0].children[0].children[18].href = "https://textprotocol.org/";
json[0].children[0].children[0].children[19].href = "apple-touch-icon.png";
json[0].children[0].children[0].children[20].href = "https://textprotocol.org/contact";
json[0].children[0].children[0].children[21].href = "https://textprotocol.org/";
json[0].children[0].children[0].children[22].href = "favicon-16x16.png";
json[0].children[0].children[0].children[23].href = "favicon-32x32.png";
json[0].children[0].children[0].children[24].href = "https://github.com/textprotocol/textprotocol.github.io/blob/main/LICENSE";
json[0].children[0].children[0].children[25].href = "site.webmanifest";
json[0].children[0].children[0].children[26].href = "https://textprotocol.org/contact";
json[0].children[0].children[0].children[27].href = "https://webmention.io/textprotocol.org/xmlrpc";

±0¢

[1] https://curl.se
[2] https://github.com/ericchiang/pup
[3] https://github.com/tomnomnom/gron