In the example you provided it is working as expected. The element
you're unmarshaling is in the "
http://www.w3.org/1999/02/22-rdf-syntax-ns#"; namespace (it has an "rdf"
prefix) but the thing you're unmarshaling it into expects
"http://purl.obolibrary.org/obo/go/subsets/goslim_yeast.owl#"; because you
put that in the tag.

If you change the namespace in the struct to the correct one everything will 
work.

—Sam

On Sun, Dec 13, 2020, at 22:25, 'Dan Kortschak' via golang-nuts wrote:
> I'm needing to consume some XML which has a namespace
> identifier reused.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/cefacd09-2b91-407e-939e-22b920969644%40www.fastmail.com.

Reply via email to