{"id":15498939,"url":"https://github.com/jumplink/simple-xml-reader-vala","last_synced_at":"2026-01-07T05:38:51.082Z","repository":{"id":4800498,"uuid":"5953607","full_name":"JumpLink/simple-xml-reader-vala","owner":"JumpLink","description":"Very Simple XML Reader forked from valadoc","archived":false,"fork":false,"pushed_at":"2014-05-04T22:31:21.000Z","size":233,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T17:27:06.527Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JumpLink.png","metadata":{"files":{"readme":"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}},"created_at":"2012-09-25T17:20:50.000Z","updated_at":"2019-12-12T00:49:54.000Z","dependencies_parsed_at":"2022-08-18T22:01:08.158Z","dependency_job_id":null,"html_url":"https://github.com/JumpLink/simple-xml-reader-vala","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JumpLink/simple-xml-reader-vala","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JumpLink%2Fsimple-xml-reader-vala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JumpLink%2Fsimple-xml-reader-vala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JumpLink%2Fsimple-xml-reader-vala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JumpLink%2Fsimple-xml-reader-vala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JumpLink","download_url":"https://codeload.github.com/JumpLink/simple-xml-reader-vala/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JumpLink%2Fsimple-xml-reader-vala/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28232990,"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","status":"online","status_checked_at":"2026-01-07T02:00:05.975Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-02T08:49:06.583Z","updated_at":"2026-01-07T05:38:51.058Z","avatar_url":"https://github.com/JumpLink.png","language":"Vala","readme":"simple-xml-reader-vala\n======================\n\nVery Simple XML Reader forked from valadoc\n\n        make\n        make install\n\nExample\n=======\n\nThis example outputs the complete xml on the console\n\n```vala\nusing Sxml;\n\npublic class Sxml.Example : DataReader, Object {\n\tprotected MarkupTokenType current_token {get; set;}\n\tprotected MarkupSourceLocation begin {get; set;}\n\tprotected MarkupSourceLocation end {get; set;}\n\tprotected XmlStreamReader reader {get; set;}\n\tpublic string path { get; construct set; }\n\n\tpublic Example (string path, string filename) {\n\t\treader = new XmlStreamReader (path+filename);\n\t}\n\tpublic void parse() {\n\t\tnext();\n\t\twhile (current_token != MarkupTokenType.EOF) {\n\t\t\tnext();\n\t\t\tif(reader.name != \"tile\") {\n\t\t\t\tprint(@\"$current_token, name: %s, content: %s\\n\",reader.name, reader.content);\n\t\t\t\treader.print_attributes();\n\t\t\t}\n\t\t}\n\t}\n}\n\nvoid main () {\n\tExample xml = new Example(\"test/\",\"testmap.tmx\");\n\txml.parse();\n}\n```\n\nCompile\n```\nvalac --pkg gee-1.0 --pkg Sxml-0.1 example.vala -o example.o\n./example.o\n```\n\nApplied examples\n\n * [girdocumentationimporter.vala](http://git.gnome.org/browse/valadoc/tree/src/libvaladoc/importer/girdocumentationimporter.vala) from valadoc\n * [Data Reader Classes](https://github.com/JumpLink/librpg/tree/master/src/XML) from librpg\n\nLizenz\n======\nGNU GPL v2\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjumplink%2Fsimple-xml-reader-vala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjumplink%2Fsimple-xml-reader-vala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjumplink%2Fsimple-xml-reader-vala/lists"}