{"id":30211264,"url":"https://github.com/mons/xml-declare","last_synced_at":"2025-08-13T20:35:35.661Z","repository":{"id":136417510,"uuid":"694044","full_name":"Mons/XML-Declare","owner":"Mons","description":"Create XML documents with declaration style","archived":false,"fork":false,"pushed_at":"2012-05-29T10:47:39.000Z","size":276,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-10T20:33:17.728Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://search.cpan.org/dist/XML-Declare","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mons.png","metadata":{"files":{"readme":"README","changelog":"Changes","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":"2010-05-30T14:47:19.000Z","updated_at":"2023-03-10T20:46:05.582Z","dependencies_parsed_at":"2023-03-10T20:46:05.419Z","dependency_job_id":null,"html_url":"https://github.com/Mons/XML-Declare","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/Mons/XML-Declare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2FXML-Declare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2FXML-Declare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2FXML-Declare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2FXML-Declare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mons","download_url":"https://codeload.github.com/Mons/XML-Declare/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2FXML-Declare/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270305853,"owners_count":24562110,"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":"2025-08-13T02:00:09.904Z","response_time":66,"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":"2025-08-13T20:34:24.308Z","updated_at":"2025-08-13T20:35:35.599Z","avatar_url":"https://github.com/Mons.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    XML::Declare - Create XML documents with declaration style\n\nSYNOPSIS\n        my $doc = doc {\n            element feed =\u003e sub {\n                attr xmlns =\u003e 'http://www.w3.org/2005/Atom';\n                comment \"generated using XML::Declare v$XML::Declare::VERSION\";\n                for (1..3) {\n                    element entry =\u003e sub {\n                        element title     =\u003e 'Title', type =\u003e 'text';\n                        element content   =\u003e sub {\n                            attr type =\u003e 'text';\n                            cdata 'Desc';\n                        };\n                        element published =\u003e '123123-1231-123-123';\n                        element author =\u003e sub {\n                            element name =\u003e 'Mons';\n                        }\n                    };\n                }\n            };\n        } '1.0','utf-8';\n\n        print $doc;\n\n        doc { DEFINITIONS } \u003c args to XML::LibXML::Document-\u003enew \u003e\n\n        Where DEFINITIONS are\n\n        element name =\u003e sub { DEFINITIONS }\n        or\n        element\n            name =\u003e 'TextContent',\n            attr =\u003e value,\n            attr1 =\u003e [qw(more values)];\n\n        attr name =\u003e values;\n\n        text $content;\n\n        cdata $content;\n\n        comment $content;\n\nEXPORT\n  doc BLOCK [ $version, $charset ];\n    Create XML::LibXML::Document;\n\n  element $name, sub { ... };\n    Create XML::LibXML::Element with name $name; everything, called within\n    \"sub { ... }\" will be appended as children to this element\n\n  element $name, ATTRS\n    Create XML::LibXML::Element with name $name and set it's attributes.\n    \"ATTRS\" is a pairs of \"key =\" \"value\"\u003e\n\n  attr $name, $value\n    Create XML::LibXML::Attribute with name $name and value $value\n\n  text $content\n    Create XML::LibXML::Text node with content $content\n\n  cdata $content\n    Create XML::LibXML::CDATASection node with content $content\n\n  comment $content\n    Create XML::LibXML::Comment node with content $content\n\nAUTHOR\n    Mons Anderson \u003cmons@cpan.org\u003e\n\nLICENSE AND COPYRIGHT\n    Copyright 2009-2010 Mons Anderson.\n\n    This program is free software; you can redistribute it and/or modify it\n    under the terms of either: the GNU General Public License as published\n    by the Free Software Foundation; or the Artistic License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmons%2Fxml-declare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmons%2Fxml-declare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmons%2Fxml-declare/lists"}