{"id":13730296,"url":"https://github.com/lxfontes/ezxml","last_synced_at":"2025-04-14T12:40:52.164Z","repository":{"id":4601400,"uuid":"3071279","full_name":"lxfontes/ezxml","owner":"lxfontes","description":"ezxml - XML parser","archived":false,"fork":false,"pushed_at":"2023-04-28T07:33:23.000Z","size":107,"stargazers_count":46,"open_issues_count":8,"forks_count":26,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-28T01:50:57.821Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ezxml.sourceforge.net/","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/lxfontes.png","metadata":{"files":{"readme":"README","changelog":"changelog.txt","contributing":null,"funding":null,"license":"license.txt","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}},"created_at":"2011-12-29T21:49:11.000Z","updated_at":"2025-03-26T09:06:04.000Z","dependencies_parsed_at":"2024-01-31T01:03:30.834Z","dependency_job_id":"2103f090-669d-4925-ad4f-c09949096b26","html_url":"https://github.com/lxfontes/ezxml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxfontes%2Fezxml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxfontes%2Fezxml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxfontes%2Fezxml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxfontes%2Fezxml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lxfontes","download_url":"https://codeload.github.com/lxfontes/ezxml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248883018,"owners_count":21177136,"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-08-03T02:01:12.933Z","updated_at":"2025-04-14T12:40:52.128Z","avatar_url":"https://github.com/lxfontes.png","language":"C","readme":"ezXML - XML Parsing C Library\nversion 0.8.5\n\nezXML is a C library for parsing XML documents inspired by simpleXML for PHP.\nAs the name implies, it's easy to use. It's ideal for parsing XML configuration\nfiles or REST web service responses. It's also fast and lightweight (less than\n20k compiled). The latest verions is available here:\nhttp://prdownloads.sf.net/ezxml/ezxml-0.8.6.tar.gz?download\n\nExample Usage\n\nGiven the following example XML document:\n\n\u003c?xml version=\"1.0\"?\u003e\n\u003cformula1\u003e\n  \u003cteam name=\"McLaren\"\u003e\n    \u003cdriver\u003e\n      \u003cname\u003eKimi Raikkonen\u003c/name\u003e\n      \u003cpoints\u003e112\u003c/points\u003e\n    \u003c/driver\u003e\n    \u003cdriver\u003e\n      \u003cname\u003eJuan Pablo Montoya\u003c/name\u003e\n      \u003cpoints\u003e60\u003c/points\u003e\n    \u003c/driver\u003e\n  \u003c/team\u003e\n\u003c/formula1\u003e\n\nThis code snippet prints out a list of drivers, which team they drive for,\nand how many championship points they have:\n\nezxml_t f1 = ezxml_parse_file(\"formula1.xml\"), team, driver;\nconst char *teamname;\n\nfor (team = ezxml_child(f1, \"team\"); team; team = team-\u003enext) {\n    teamname = ezxml_attr(team, \"name\");\n    for (driver = ezxml_child(team, \"driver\"); driver; driver = driver-\u003enext) {\n        printf(\"%s, %s: %s\\n\", ezxml_child(driver, \"name\")-\u003etxt, teamname,\n               ezxml_child(driver, \"points\")-\u003etxt);\n    }\n}\nezxml_free(f1);\n\nAlternately, the following would print out the name of the second driver on the\nfirst team:\n\nezxml_t f1 = ezxml_parse_file(\"formula1.xml\");\n\nprintf(\"%s\\n\", ezxml_get(f1, \"team\", 0, \"driver\", 1, \"name\", -1)-\u003etxt);\nezxml_free(f1);\n\nThe -1 indicates the end of the argument list. That's pretty much all\nthere is to it. Complete API documentation can be found in ezxml.h.\n\nKnown Limitations\n\n- ezXML is not a validating parser\n\n- Loads the entire XML document into memory at once and does not allow for\n  documents to be passed in a chunk at a time. Large XML files can still be\n  handled though through ezxml_parse_file() and ezxml_parse_fd(), which use mmap\n  to map the file to a virtual address space and rely on the virtual memory\n  system to page in data as needed.\n\n- Does not currently recognize all possible well-formedness errors. It should\n  correctly handle all well-formed XML documents and will either ignore or halt\n  XML processing on well-formedness errors. More well-formedness checking will\n  be added in subsiquent releases.\n\n- In making the character content of tags easy to access, there is no way\n  provided to keep track of the location of sub tags relative to the character\n  data. Example:\n\n  \u003cdoc\u003eline one\u003cbr/\u003e\n  line two\u003c/doc\u003e\n\n  The character content of the doc tag is reported as \"line one\\nline two\", and\n  \u003cbr/\u003e is reported as a sub tag, but the location of \u003cbr/\u003e within the\n  character data is not. The function ezxml_toxml() will convert an ezXML\n  structure back to XML with sub tag locations intact.\n\nLicensing\n\nezXML was written by Aaron Voisine \u003caaron@voisine.org\u003e and is distributed under\nthe terms of the MIT license, described in license.txt.\n","funding_links":[],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flxfontes%2Fezxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flxfontes%2Fezxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flxfontes%2Fezxml/lists"}