go-xml
go-xml copied to clipboard
utility and code-generation libraries for XML
Currently it appears the XSDGEN tool does not reference and included/imported schema files. There is an 'Import' function in the Parser code, but unclear how to use it. Is there...
When trying to generate the schema structures for the Tableau 3.6. api, the generation is invalid. Full xsd is available here: https://help.tableau.com/samples/en-us/rest_api/ts-api_3_6.xsd More specifically the Lastday in this monthDay attribute...
We need a workaround for https://golang.org/issues/11939. Empty structs (full of zeroes) for which ,omitempty is present on all field tags should not show up in MarshalXML output, but they do....
When pulling the latest code (https://github.com/droyo/go-xml/commit/d9421b29381771b31dcc35151bdc554d586f1e60), the tests for `books` pass until you actually generate new tests using `gentests/gentest.go`, at which point the tests fail. The response looks like: ```...
Without this PR, marshalling a struct generated by xsdgen will not set it's name and namespace correctly. As fas as I can tell the standard practice in go is to...
I have been experimenting with go-xml to see if I can use it to interface with an existing Java server application. The existing schema used by the Java code is...
These are my accumulated changes with regard to: xsdgen: imports (being relative) xsd: type handling (referencing elements should not get a default type) xsd/xsdgen: generation of namespace information in golang...
This partly addresses #17 by generating const declarations for enums. I also fixed some linter errors. Maybe we should omit numerical enums since they don't have useful names? ```go //...
This PR introduces multiple improves in handling anonymous types: ### coalesce identical anonymous types old behaviour: ```go type Anon1 struct { Elem []string `xml:"http://example.org/ Elem,omitempty"` } type Anon2 struct {...
This is a companion PR to #140 Unions that consist of basic types and complex types based on the same basic type can be replaced with just the basic type....