Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/droyo/go-xml
utility and code-generation libraries for XML
https://github.com/droyo/go-xml
go soap wsdl xml
Last synced: 3 months ago
JSON representation
utility and code-generation libraries for XML
- Host: GitHub
- URL: https://github.com/droyo/go-xml
- Owner: droyo
- License: mit
- Created: 2015-03-07T05:18:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T09:21:24.000Z (6 months ago)
- Last Synced: 2024-06-19T12:47:12.297Z (5 months ago)
- Topics: go, soap, wsdl, xml
- Language: Go
- Size: 4.72 MB
- Stars: 295
- Watchers: 10
- Forks: 111
- Open Issues: 50
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- go-awesome - go-xml
README
[![GoDoc](https://godoc.org/aqwari.net/xml?status.svg)](https://godoc.org/aqwari.net/xml) [![Build Status](https://travis-ci.org/droyo/go-xml.svg?branch=master)](https://travis-ci.org/droyo/go-xml)
## Installation
Requires go 1.9 or greater for golang.org/x/html dependency.
```
go get aqwari.net/xml/...
```This repository contains a collection of Go packages for working
with XML, with the ultimate goal of enabling code generation based
on XML documents.- The `xmltree` package converts xml documents to a tree data
structure, and provides convenient methods for manipulating and
searching through that tree.
- The `xsd` package implements a parser for XML Schema. It takes
some liberties from the specification, and would need some work for
use as a validator, but it handles type inheritance and XML namespaces
in a relatively sane way.
- The `xsdgen` package provides a customizable code generator that
generates Go type declarations and marshal/unmarshal methods for
an XML Schema.
- The `wsdl` package parses Web Service Definition Language (WSDL)
files, which describe a (usually) SOAP web service.
- The `wsdlgen` package generates Go source code from WSDL files.
- The `xsdgen` and `wsdlgen` commands generate Go code with default
settings and are suitable for use with `go generate`.The directory wsdlgen/examples contains packages that were (mostly)
automatically generated using the wsdlgen package. You can rungo generate
within the subdirectories to re-generate the code if you make changes
to the wsdlgen package.
This code is still very rough around the edges, but I have succesfully
used it to generate type declarations for some pretty complex XML
schema from an Apache Axis application. There are github issues
opened for missing functionality.