Closed stepanselyuk closed 7 years ago
It seems I can get access to xml nodes values, but don't know how to get access to attributes, cause if I call:
v := doc.Entities[0].Fields[4].Options.Options[0].XsdGoPkgCDATA
fmt.Printf("Product: %+v %p\n", v, v)
it prints: Product: 1 %!p(string=1)
which conform the xml document content.
The same thing I tried on github.com/metaleap/go-xsd-pkg/kbcafe.com/rss/atom.xsd.xml_go
- can access to nodes' values, but cannot to get access to attributes' values (I added values to feed/id node: base="foobar" lang="en"
).
It seems the same issue as described in #18. I fixed by removing namespaces from generated .xsd.go file.
Hello @metaleap ! Firstly, thank you for great package! I have issue with http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd
I generated .go file using
Ok then, in the project I use this xml document:
Tried to use in this way:
and the result:
I expect to print "products" table name. I don't know where exactly I'm wrong.