{"id":18510872,"url":"https://github.com/dreamtowards/xmlp","last_synced_at":"2025-06-14T08:38:01.994Z","repository":{"id":182947294,"uuid":"276632652","full_name":"Dreamtowards/XMLP","owner":"Dreamtowards","description":"A Lightweight XML Manulator in Java.","archived":false,"fork":false,"pushed_at":"2020-07-08T12:00:16.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T02:43:32.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dreamtowards.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,"governance":null}},"created_at":"2020-07-02T11:49:44.000Z","updated_at":"2021-06-30T11:45:22.000Z","dependencies_parsed_at":"2023-07-22T07:51:03.617Z","dependency_job_id":null,"html_url":"https://github.com/Dreamtowards/XMLP","commit_stats":null,"previous_names":["dreamtowards/xmlp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dreamtowards%2FXMLP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dreamtowards%2FXMLP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dreamtowards%2FXMLP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dreamtowards%2FXMLP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dreamtowards","download_url":"https://codeload.github.com/Dreamtowards/XMLP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129636,"owners_count":22019632,"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-11-06T15:25:36.439Z","updated_at":"2025-05-14T11:20:31.180Z","avatar_url":"https://github.com/Dreamtowards.png","language":"Java","readme":"## Copyrights Declarations\nThis is produced From OTS/UtilS Lib. as a Open, Semi-Independent Term.\n\n# Getting start\n\n### Create a XML element From existed XML String.\n```java\n  XML nd1 = new XML(\"\u003cele1 attr1='attrValue1'\u003e\u003ca\u003e\u003c/a\u003e\u003cb\u003eSome of Texts\u003c/b\u003e\u003c/ele1\u003e\");\n  System.out.println(nd1.toString(0));\n  System.out.println(nd1.toString());  // default indentFactor: 4.\n```\nOutput:\n```\n\u003cele1 attr1=\"attrValue1\"\u003e\u003ca/\u003e\u003cb\u003eSome of Texts\u003c/b\u003e\u003c/ele1\u003e\n\u003cele1 attr1=\"attrValue1\"\u003e\n    \u003ca/\u003e\n    \u003cb\u003eSome of Texts\u003c/b\u003e\n\u003c/ele1\u003e\n```\n### Create a XML element From a InputStream. (String content)\nFile testxml.xml:\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003c?txt some texts?\u003e\n\u003c!-- commts --\u003e\n\n\u003cRootEle xmlns:tstNs=\"http://tstns.example.com\" attr1key=\"value1\" attr2k=\"v2\" \u003e\n\n    \u003cemptybodyele1\u003e\u003c/emptybodyele1\u003e\n    \u003cemptybodyele2/\u003e\n    \u003cemptybodyHadAttrEle1WithEscpAttrValue tstNs:attr1=\"valueWithEscp\u003c\u003e\u0026apos;\u0026quot;\u0026amp;\"/\u003e\n\n    \u003celep\u003e\n        \u003c!-- commts1 --\u003e\n        \u003cjusTxtBodyEle\u003eSome of Text\u003c/jusTxtBodyEle\u003e\n        \u003cjusTxtBodyEle2WithMulLine\u003e\n            Some of Text2\n            And MulLine\n        \u003c/jusTxtBodyEle2WithMulLine\u003e\n        \u003cCDATABodyTest\u003e\n            \u003c![CDATA[\nSome Text \u003c\u003e\u0026'\" In CDATA -only for input.\n]]\u003e\n        \u003c/CDATABodyTest\u003e\n        \u003c!-- commts2 --\u003e\n    \u003c/elep\u003e\n\n\u003c/RootEle\u003e\n```\n```java\n  XML tn2 = new XML(new FileInputStream(\"testxml.xml\"));\n  System.out.println(tn2.toString(2));\n\n  System.out.println(\"attrs: \"+tn2.getChildren().get(2).getAttributes());\n```\nOutput:\n```\n\u003cRootEle attr2k=\"v2\" attr1key=\"value1\" xmlns:tstNs=\"http://tstns.example.com\"\u003e\n  \u003cemptybodyele1/\u003e\n  \u003cemptybodyele2/\u003e\n  \u003cemptybodyHadAttrEle1WithEscpAttrValue tstNs:attr1=\"valueWithEscp\u0026lt;\u0026gt;\u0026apos;\u0026quot;\u0026amp;\"/\u003e\n  \u003celep\u003e\n    \u003cjusTxtBodyEle\u003eSome of Text\u003c/jusTxtBodyEle\u003e\n    \u003cjusTxtBodyEle2WithMulLine\u003eSome of Text2\n            And MulLine\u003c/jusTxtBodyEle2WithMulLine\u003e\n    \u003cCDATABodyTest\u003e\nSome Text \u0026lt;\u0026gt;\u0026amp;\u0026apos;\u0026quot; In CDATA -only for input.\n\u003c/CDATABodyTest\u003e\n  \u003c/elep\u003e\n\u003c/RootEle\u003e\nattrs: {tstNs:attr1=valueWithEscp\u003c\u003e'\"\u0026}\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamtowards%2Fxmlp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreamtowards%2Fxmlp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamtowards%2Fxmlp/lists"}