Torsten,
Â
XNAT translates xml documents into relational database tables. Often this translation requires the generation of some additional values (primary keys, foreign keys) that aren’t included in the schema.Â
By default, XNAT’s web services include those fields as comments in the xml document (in some rare circumstances they are helpful). I’m not sure that they are ending up in the best place there, but you should be able to avoid them completely. You can hide these extra fields by adding an ironically named query string variable (concealHiddenFields).
Â
/xnat/data/experiments/ID_E00021?format=xml&concealHiddenFields=true
Â
That should eliminate the commented fields.
Â
Tim
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
Â
Â
Makes sense, and I see now that the field isn't really hidden, just obscured by the additional comment tag.
Now to solve my actual problem - and this of course addressed to the pyxnat developers - is there any reason why pyxnat couldn't get xml representations with concealHiddenFields=true added to the request?
Although I also wonder - is there any reason why XNAT delivers these by default, rather than only include them when concealHiddenFields=false is given in the URI?
Thanks all!
Torsten