Reply
jrk
Regular
Posts: 10
Registered: ‎06-15-2015
0
Accepted Solution

Custom XML Export

Hi there,

 

I would like to export a list of citations in XML format, but only with certain fields showing (e.g. author, year, title, journal, volume, issues, pages, keywords). I tried creating a custom Output Style, but when I go to export, and Save As Type: XML, it is producing an XML document with a variety of additional fields (e.g. abstract, URL).

 

What could I be doing incorrectly? Am I doing this backwards, and I should be creating a Custom Reference Type with the fields I want, and then exporting that?

 

Thanks!

Mentor
Posts: 2,030
Registered: ‎09-30-2009
0

Re: Custom XML Export

Can you attach your output style file? You should create a modified output style that incorporates the fields you want along with tabs skip over the unwanted fields. Also, when you export the Endnote records as an .XML did you select your modified output style as the format?

jrk
Regular
Posts: 10
Registered: ‎06-15-2015
0

Re: Custom XML Export

@CrazyGecko: Please see my style file attached. And yes, I selected it during my export, which is why I am so confused (because it seems like it should just work?).

 

@Leanne: I will reach out to Tech Support. Unfortunately, this is an ongoing project, so the copy/paste method would be a little inefficient over time; howeverm if it's the only way, then I could try it out for awhile.

Highlighted
Mentor
Posts: 2,030
Registered: ‎09-30-2009
3

Re: Custom XML Export

[ Edited ]

jrk, thanks for the output file. Examining the template's layout showed the problem was twofold. When specifying the exporting of particular fields: 1) the field name should be based on the Generic field names (see image #1); and 2) the layout of the bibliography template should include tabs to "skip over" the unwanted fields. (Refer to image #2 which shows modifying the Tab Delimited output style file to retain fields you wanted, delete the unwanted fields, and retain the tabs.)

 

Attached is the modified style for you to try. Testing confirms it works but if you need some other for modification specify the change.

jrk
Regular
Posts: 10
Registered: ‎06-15-2015
0

Re: Custom XML Export

I exported using your "Tab Delimited_jrk" style that I put into my style folder. I also made one change, in which I added the Journal Article reference type. Upon exporting into XML, I am still seeing an abstract, and I have no idea where it is pulling it from! I am attaching photos so you can see that I am in fact exporting properly (at least I think so!).

Mentor
Posts: 2,030
Registered: ‎09-30-2009
0

Re: Custom XML Export

[ Edited ]

You're exporting correctly.  Looks like an additional tab was needed to skip-over the Abstracts field. Revised output style file is attached. (You'll need to add the reference type.)

 

jrk
Regular
Posts: 10
Registered: ‎06-15-2015
0

Re: Custom XML Export

Thank you so much for your help on this. Everything is working perfectly!