{"id":22971470,"url":"https://github.com/vorgestern/xmlrep","last_synced_at":"2025-04-02T06:17:16.026Z","repository":{"id":267182307,"uuid":"900401273","full_name":"vorgestern/xmlrep","owner":"vorgestern","description":"Lua module to export structured data in xml-form","archived":false,"fork":false,"pushed_at":"2025-02-16T00:10:40.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T01:17:14.769Z","etag":null,"topics":["lua","serialise","xml"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vorgestern.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-08T17:23:30.000Z","updated_at":"2025-02-16T00:10:43.000Z","dependencies_parsed_at":"2025-02-16T01:17:18.452Z","dependency_job_id":"ff80883f-7f5c-41ae-94dd-3ff2300020e5","html_url":"https://github.com/vorgestern/xmlrep","commit_stats":null,"previous_names":["vorgestern/xmlrep"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorgestern%2Fxmlrep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorgestern%2Fxmlrep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorgestern%2Fxmlrep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorgestern%2Fxmlrep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vorgestern","download_url":"https://codeload.github.com/vorgestern/xmlrep/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246763899,"owners_count":20829800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","serialise","xml"],"created_at":"2024-12-14T22:17:46.515Z","updated_at":"2025-04-02T06:17:16.012Z","avatar_url":"https://github.com/vorgestern.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# xmlrep\n\n## Purpose\nExport structured data from Lua in xml-form\n\nXmlrep makes it easy to create 'domain-specific' utilities\nto establish default-attributes or parameterised node-structures\nin the Lua representation of a data structure.\n\nA Lua file is typically easier to keep under version control than\nan application-specific xml-file, because applications usually include\nextraneous information (e.g. 'last-modified' timestamps).\n\n## Status\nWorks as intended\n### Missing features\n- Creating attributes directly from generic Lua-tables (alphabetic order)\n- Escaping Text properly\n- xml entities\n- xml namespace\n### Defects\n- Indentation after textnodes that are terminated with a newline\n\n## How to use\n\n    local X=require \"xmlrep\"\n    local N,A,T=X.N,X.A,X.T  -- Abbreviate Node, Attribute, Textnode\n                             -- (Attributes and Textnodes may not be necessary,\n                             -- since they can be created implicitly.)\n\n    local Readme=N \"Readme\" {\"version=0.1\"} {\n        N \"Level1\" {\"index=0\", \"version=0.1\"} {\n            N \"Level2\" {} {\n            },\n            N \"Level2\" {} {\n            }\n        }\n    }\n\n    print(Readme) -- Print xml-representation\n\n### More complex examples\n                                            outputs xml-text ..\n    lua examples/Readme.lua                 .. with roughly the same content as this Readme.\n    lua examples/Demoproject.lua            .. of a project file for Visual Studio (.vcxproj).\n    lua examples/Mindmap.lua                .. of a mindmap for Freeplane (https://github.com/freeplane/freeplane)\n    lua examples/qtui/coverdialog.lua       .. of a resource-file for a Qt-application\n    lua examples/qtui/findmpddialog.lua     .. of a resource-file for a Qt-application\n\n## How to build\nThere is no need to build xmlrep,\nsince it can be used in source-form.\n\n## How to install\nCopy xmlrep.lua to a directory on your Luapath.\nConsult LUA_PATH_5_4 or LUA_PATH environment variables\nor https://www.lua.org/manual/5.4/manual.html#pdf-package.path\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorgestern%2Fxmlrep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvorgestern%2Fxmlrep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorgestern%2Fxmlrep/lists"}