xgen icon indicating copy to clipboard operation
xgen copied to clipboard

XSD (XML Schema Definition) parser and Go/C/Java/Rust/TypeScript code generator

Results 34 xgen issues
Sort by recently updated
recently updated
newest added

**Description** Under certain conditions, some of the choices in an xs:choice do not get generated. In the enclosed example, there is on a6 field in the generated go code. This...

![image](https://user-images.githubusercontent.com/7411249/93883906-c5ec6a80-fd14-11ea-82ba-5fa81a801f9f.png) such as this, the `CurrentTerritoryCode` is base in namespace `avs:CurrentTerritoryCode`, but the CurrentTerritoryCode in avs is: ![image](https://user-images.githubusercontent.com/7411249/93884017-ecaaa100-fd14-11ea-9eff-af53b9e14d80.png) the gen go code is: ![image](https://user-images.githubusercontent.com/7411249/93884071-021fcb00-fd15-11ea-98d5-92aa0205cd39.png) is it incorrect?

enhancement

**Is your feature request related to a problem? Please describe.** When creating code from the NeTEx XSD, I end up with a single Go file which does not encompass the...

**Description** Note: I'm only interested in TypeScript, so I didn't test any other languages. When generating code for TS and there's an enum type (enumeration) it could have illegal characters,...

Looking at the map from XSD types to language-specific types in `utils.go`, it seems there are a number of problems with the non-Go languages: * `char` is used frequently in...

enhancement

**Description** Generating a binding for an XML Schema containing `xsd:integer` will result in `int`. This is an error since `xsd:integer` is unbounded while the Go type `int` is a 32-bit...

**Description** Hello 👋 First of all, thank you for this library! I'm new to XSD files. I'm having issues using `xgen` to generate for NORID's EPP `.xsd` files. They are...

enhancement

Hello! I'm trying to generate Go code based on the [BPMN](https://www.omg.org/spec/BPMN/2.0/About-BPMN) schemas (they can be found in the previous link - `BPMN20.xsd` being the main one). Here is the generated...

**Description** I stumbled upon this bug because some simple types were missing from my output. The opt.Element stack sometimes contains elements which have already been processed by the parser. This...

**Description** Xgen is creating a Go type for a element but the type was not used. The xsd used is this one: [e400101_v1.00.xsd.zip](https://github.com/xuri/xgen/files/4643537/e400101_v1.00.xsd.zip) **Steps** ```sh $ go get -u github.com/xuri/xgen...