go-xml icon indicating copy to clipboard operation
go-xml copied to clipboard

utility and code-generation libraries for XML

Results 53 go-xml issues
Sort by recently updated
recently updated
newest added

Some XML schema, such as http://schema.bolagsverket.se/extern/foretagsinformation/F5_Rakenskapsinformation_2.00.xsd , make heavy use of imports. Add a tool, `xsdfetch`, that can be used to retrieve all the schema imported by a target schema....

enhancement

Elements and attributes that have default values should get those values set if they contain the zero value for their Go type after marshalling.

enhancement

The tags of go struct generated by xsdgen have unnecessary xmlns. This causes unnecessary xmlns while marshalling into xml. For example, from http://www.fdsn.org/xml/station/fdsn-station-1.0.xsd, one of the generated go struct is...

enhancement

Use xml Marshal to encode attribute values in encodeOpenTag

The port filter was broken. I also improved the tests to catch regressions like this in the future.

I'm trying to generate Go code from some ISO20022 xsd files and running into an issue. Replace rules are supposed to take the form of `regex -> regex`, right? Running...

add description for length restriction

If simpleType has only length restriction then it will skipped when generating structs, because `flatten1` method returns `builtin` type if simpleType has got empty `doc` field. https://github.com/droyo/go-xml/blob/master/xsdgen/xsdgen.go#L466 https://github.com/droyo/go-xml/blob/master/xsdgen/xsdgen.go#L534 it's represents...

I am trying to parse the [grobid xsd files](https://github.com/kermitt2/grobid/tree/master/grobid-home/schemas/xsd) using the following command: ``` xsdgen -pkg grobid -o grobidschema.go ./grobid/grobid-home/schemas/xsd/Grobid.xsd ``` This results in an issue with the source, but...