go-xml
go-xml copied to clipboard
utility and code-generation libraries for XML
The sample code is as follows, the input file name is `AUTOSAR_00048.xsd` : ``` go func MyTestXsdNormalize(filename string) error { doc , err := os.ReadFile(filename) if err != nil {...
There's a missing error check in the mentioned file, so a file reading error is ignored. It should be trivial to fix. ```go // GenAST creates an *ast.File containing type...
When `ref` is used in the xsd definition, its type and namespace are parsed incorrectly. `attributeDefaultType` adds default `type="xsd:anySimpleType"` to ref attributes which does(and should) not have type attribute itself....