{"id":21740139,"url":"https://github.com/bserdar/go-dom","last_synced_at":"2025-03-21T01:13:06.078Z","repository":{"id":203889438,"uuid":"448701801","full_name":"bserdar/go-dom","owner":"bserdar","description":"XML DOM implementation for Go","archived":false,"fork":false,"pushed_at":"2023-10-30T04:13:23.000Z","size":165,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-25T21:27:17.372Z","etag":null,"topics":["dom","dom-manipulation","go","xml"],"latest_commit_sha":null,"homepage":"","language":"Go","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/bserdar.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-16T23:48:13.000Z","updated_at":"2023-10-27T04:30:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2079643-9c86-4b63-9aa2-af83dbfa2d0d","html_url":"https://github.com/bserdar/go-dom","commit_stats":null,"previous_names":["bserdar/go-dom"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bserdar%2Fgo-dom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bserdar%2Fgo-dom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bserdar%2Fgo-dom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bserdar%2Fgo-dom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bserdar","download_url":"https://codeload.github.com/bserdar/go-dom/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244717339,"owners_count":20498284,"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":["dom","dom-manipulation","go","xml"],"created_at":"2024-11-26T06:12:17.745Z","updated_at":"2025-03-21T01:13:06.061Z","avatar_url":"https://github.com/bserdar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/bserdar/go-dom?status.svg)](https://godoc.org/github.com/bserdar/go-dom)\n[![Go Report Card](https://goreportcard.com/badge/github.com/bserdar/go-dom)](https://goreportcard.com/report/github.com/bserdar/go-dom)\n[![Build Status](https://github.com/bserdar/go-dom/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/bserdar/go-dom/actions/workflows/CI.yml)\n# XML DOM Implementation for Go\n\nThis is a library to programmatically create, read, and modify XML\ndocuments using Go without marshaling/unmarshaling them into\nstructures. It somewhat follows the XML DOM specification with the\nfollowing exceptions:\n\n * This implementation preserves and exposes XML namespace prefixes\n * Elements can be created with namespaces and prefixes\n * CDATA sections are converted to text nodes\n \n## Namespace Normalization\n\nThe `Document` interface has a `NormalizeNamespaces()` method that\nshould be called before serializing the document. It does the following:\n\n * If there are elements/attributes with namespaces with no associated\n   prefixes, then it create prefixes for them\n * If there are elements/attributes with prefixes that are not\n   defined, it returns error\n   \n## Serialization\n\nTo parse XML documents, use the `Parse` function with an\n`xml.Decoder.` By changing the `Strict` and `Entities` fields of a\n`Decoder`, this parser can be used to parse HTML data.\n\nTo encode a `Document` as XML, first call `NormalizeNamespaces()`\nfunction, and then use the `Encode` function.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbserdar%2Fgo-dom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbserdar%2Fgo-dom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbserdar%2Fgo-dom/lists"}