On Mon, 2020-12-14 at 13:53 +0000, Sam Whited wrote: > 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
Thanks, Sam. I figured it would be something simple like that. I ended up skirting the issue; I do start with parsing the token stream and then using the Decoder.DecodeElement on specific start elements (for reasons entirely unrelated to the original questions). Dan -- 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 golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/6f77aef8da7260a47cbb8e428b0bfb074100403a.camel%40kortschak.io.