Skip to content

Go XMLName tag conflict #83

@ameershira

Description

@ameershira

Description

Generaing Go types for reading and parsing svd files by using the CMSIS-SVD.xsd file.

Steps to reproduce the issue:

  1. xgen -i ./CMSIS-SVD.xsd -o ./svd/types.go -l Go -p svd generates this file types.go.txt
  2. compiling a Go app that reads in an svd ARM_Example.svd
  3. run the app.

Describe the results you received:

2024/12/22 16:17:53 ERRO xml: name "cpu" in tag of svd.Device.Cpu conflicts with name "cpuType" in *svd.CpuType.XMLName

Describe the results you expected:
No errors.

Output of go version:

go version go1.23.4 linux/amd64

xgen version or commit ID:

xgen version: 0.1.0

Environment details (OS, physical, etc.):
Distributor ID: Neon
Description: KDE neon 6.2
Release: 24.04
Codename: noble

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions