{"id":15399102,"url":"https://github.com/sharp0802/frxml","last_synced_at":"2025-03-21T01:44:38.821Z","repository":{"id":252039990,"uuid":"837934402","full_name":"Sharp0802/frxml","owner":"Sharp0802","description":"A simple zero-copy/single-pass XML parser, written in C++17 ","archived":false,"fork":false,"pushed_at":"2024-10-20T04:10:12.000Z","size":225,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T22:34:22.358Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sharp0802.png","metadata":{"files":{"readme":"docs/README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-04T13:35:32.000Z","updated_at":"2024-10-20T04:10:15.000Z","dependencies_parsed_at":"2025-01-25T22:33:59.214Z","dependency_job_id":"10fa34d1-3bc8-4c64-9ad6-a4ecddee729c","html_url":"https://github.com/Sharp0802/frxml","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"db978a443f8df8b5bd726b07a076152d36d4fef3"},"previous_names":["sharp0802/frxml"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sharp0802%2Ffrxml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sharp0802%2Ffrxml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sharp0802%2Ffrxml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sharp0802%2Ffrxml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sharp0802","download_url":"https://codeload.github.com/Sharp0802/frxml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244722651,"owners_count":20499153,"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":[],"created_at":"2024-10-01T15:46:53.728Z","updated_at":"2025-03-21T01:44:38.816Z","avatar_url":"https://github.com/Sharp0802.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FRXML : Fast/Robust XML parser\n\nFRXML is DOM-based light-weight \u0026 robust XML parser, written in C++17 - with a goal\nthat is to archive `O(n)` level of memory occupancy,\nregardless of how deep the depth of the xml document is\n\n## Benchmark\n\n![benchmark](Figure_1.png)\n\n* lower is better\n\n## Features\n\n- zero-copy/single-pass parsing\n- UTF-8 supported (without BOM)\n- limited XML 1.0\n\n## Limitation\n\n- No `\u003c! ... \u003e` things such as `\u003c!DOCTYPE ...` or `\u003c!ENTITY ...` etc...\n- No entity(`\u0026lt;`, `\u0026#x20`) encoder/decoder (to achieve zero-copy)\n\nCurrently, FRXML doesn't support XML 1.0 specification yet.\nBelow is implemented XML format with EBNF format:\n\n```ebnf\ndocument ::= prolog misc* element misc*\n\nprolog ::= pcinstr? /* XML declaration is subset of pcinstr */\n\nname ::= NAME_STARTCHAR NAME_CHAR*\n\nnode ::= element | misc\nmisc ::= comment | pcinstr | S\n\n      element ::= norm_element | empty_element\n norm_element ::= '\u003c' name (S attr)* S? '\u003e' content '\u003c/' name '\u003e'\nempty_element ::= '\u003c' name (S attr)* S? '/\u003e'\n      comment ::= '\u003c!--' '\u003c!--' ((CHAR - '-') | ('-' (CHAR - '-')))* '--\u003e'\n      pcinstr ::= '\u003c?' name (S (CHAR* - (CHAR* '?\u003e' CHAR*)))? '?\u003e'\n      \ncontent ::= node (S? content)?\n```\n\n## Usage\n\n### Parsing\n\n```c++\n#include \u003ciostream\u003e\n#include \u003cfrxml.h\u003e\n\nint main()\n{\n    std::string xml = R\"(\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c?ユニコードは 好きですか??\u003e\n\u003c!-- HELLO! --\u003e\n\u003cxml0\u003e\n    \u003c유니코드 attr=\"안녕하세요\" attr0=\"1\"\u003e\u003cxml3 /\u003e\n\u003c!-- HELLO! --\u003e\n    \u003c/유니코드\u003e\n    \u003c?ユニコードは 好きですか??\u003e\n    \u003cxml2 attr=\"c\"/\u003e\n\u003c/xml0\u003e\n\u003c!-- HELLO! --\u003e\n)\";\n    frxml::doc doc{ xml };\n    if (!doc)\n    {\n        std::cout \u003c\u003c std::to_string(error.exception()) \u003c\u003c '\\n';\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharp0802%2Ffrxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharp0802%2Ffrxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharp0802%2Ffrxml/lists"}