{"id":17723586,"url":"https://github.com/doriantaylor/p5-xml-libxml-lazybuilder","last_synced_at":"2025-07-26T07:41:24.358Z","repository":{"id":3705515,"uuid":"4776905","full_name":"doriantaylor/p5-xml-libxml-lazybuilder","owner":"doriantaylor","description":"TORU's XML::LibXML::LazyBuilder, now with namespaces","archived":false,"fork":false,"pushed_at":"2012-06-25T02:01:05.000Z","size":100,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-12T10:11:35.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/doriantaylor.png","metadata":{"files":{"readme":"README","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-25T01:55:08.000Z","updated_at":"2014-09-09T02:47:33.000Z","dependencies_parsed_at":"2022-09-15T21:31:33.822Z","dependency_job_id":null,"html_url":"https://github.com/doriantaylor/p5-xml-libxml-lazybuilder","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/doriantaylor/p5-xml-libxml-lazybuilder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doriantaylor%2Fp5-xml-libxml-lazybuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doriantaylor%2Fp5-xml-libxml-lazybuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doriantaylor%2Fp5-xml-libxml-lazybuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doriantaylor%2Fp5-xml-libxml-lazybuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doriantaylor","download_url":"https://codeload.github.com/doriantaylor/p5-xml-libxml-lazybuilder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doriantaylor%2Fp5-xml-libxml-lazybuilder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267137172,"owners_count":24041322,"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-07-26T02:00:08.937Z","response_time":62,"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-25T15:43:24.647Z","updated_at":"2025-07-26T07:41:24.332Z","avatar_url":"https://github.com/doriantaylor.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    XML::LibXML::LazyBuilder - easy and lazy way to create XML document for\n    XML::LibXML\n\nSYNOPSIS\n      use XML::LibXML::LazyBuilder;\n\n      {\n          package XML::LibXML::LazyBuilder;\n          $d = DOM (E A =\u003e {at1 =\u003e \"val1\", at2 =\u003e \"val2\"},\n                    ((E B =\u003e {}, ((E \"C\"),\n                                  (E D =\u003e {}, \"Content of D\"))),\n                     (E E =\u003e {}, ((E F =\u003e {}, \"Content of F\"),\n                                  (E \"G\")))));\n      }\n\nDESCRIPTION\n    You can describe XML documents like simple function call instead of\n    using createElement, appendChild, etc...\n\n  FUNCTIONS\n    E\n            E \"tagname\", \\%attr, @children\n\n        Creats CODEREF that generates \"XML::LibXML::Element\" which tag name\n        is given by first argument. Rest arguments are list of text content\n        or child element created by \"E\" (so you can nest \"E\").\n\n        Since the output of this function is CODEREF, the creation of actual\n        \"XML::LibXML::Element\" object will be delayed until \"DOM\" function\n        is called.\n\n    DOM\n            DOM \\\u0026docroot, $var, $enc\n\n        Generates \"XML::LibXML::Document\" object actually. First argument is\n        a CODEREF created by \"E\" function. $var is version number of XML\n        docuemnt, \"1.0\" by default. $enc is encoding, \"utf-8\" by default.\n\n  EXPORT\n    None by default.\n\n    :all\n        Exports \"E\" and \"DOM\".\n\n  EXAMPLES\n    I recommend to use \"package\" statement in a small scope so that you can\n    use short function name and avoid to pollute global name space.\n\n      my $d;\n      {\n          package XML::LibXML::LazyBuilder;\n          $d = DOM (E A =\u003e {at1 =\u003e \"val1\", at2 =\u003e \"val2\"},\n                    ((E B =\u003e {}, ((E \"C\"),\n                                  (E D =\u003e {}, \"Content of D\"))),\n                     (E E =\u003e {}, ((E F =\u003e {}, \"Content of F\"),\n                                  (E \"G\")))));\n      }\n\n    Then, \"$d-\u003etoString\" will generate XML like this:\n\n      \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n      \u003cA at1=\"val1\" at2=\"val2\"\u003e\u003cB\u003e\u003cC/\u003e\u003cD\u003eContent of D\u003c/D\u003e\u003c/B\u003e\u003cE\u003e\u003cF\u003eContent of F\u003c/F\u003e\u003cG/\u003e\u003c/E\u003e\u003c/A\u003e\n\nSEE ALSO\n    XML::LibXML\n\nAUTHOR\n    Toru Hisai, \u003ctoru@torus.jp\u003e\n\nCOPYRIGHT AND LICENSE\n    Copyright (C) 2008 by Toru Hisai\n\n    This library is free software; you can redistribute it and/or modify it\n    under the same terms as Perl itself, either Perl version 5.10.0 or, at\n    your option, any later version of Perl 5 you may have available.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoriantaylor%2Fp5-xml-libxml-lazybuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoriantaylor%2Fp5-xml-libxml-lazybuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoriantaylor%2Fp5-xml-libxml-lazybuilder/lists"}