Skip to content
/ go-xml Public
forked from RemkoMolier/go-xml

utility and code-generation libraries for XML

License

Notifications You must be signed in to change notification settings

m29h/go-xml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-xml GoDoc Tests Coverage Status Go Report Card

Installation

go get github.com/m29h/go-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. This version generates the pure client function for binding to a generic SOAP client implemention through a slim SOAPdoer interface. Check out the package github.com/m29h/gosoap for a concrete soap client implementation that can work with this generated client code and supports WS-Security x.509
  • 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 run go generate within the subdirectories to re-generate the code if you make changes to the wsdlgen package.

About

utility and code-generation libraries for XML

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%