Help me. Error: content is not allowed in prolog

224 views
Skip to first unread message

Tuan Trieu

unread,
Apr 21, 2016, 4:34:47 AM4/21/16
to ORCID API Users
Hi everybody.

when i update BIO with CURL by statement :

curl -H "Content-Type: application/vnd.orcid+xml" -H "Authorization: Bearer f18c2656-3fca-4412-b706-64e5ec982028" -d "D:/updated_bio.xml" -X PUT "https://api.sandbox.orcid.org/v1.2/0000-0002-5780-7855/orcid-bio"


on the screen show error org.xml.SAXParseException; Linenumber : 1; ColumnNumber:1; content is not allowed in prolog

please help me.

Tuan
er.png

Wilmers, Catalina

unread,
Apr 21, 2016, 1:20:21 PM4/21/16
to Tuan Trieu, ORCID API Users
Hi Tuan,

Check that you're call is pointing at the right file and able to read the file. That error is usually returned where there is an issue with the path to the file, though it could also be an issue with the XML you're posting.

Also, we have a list of common error codes at http://members.orcid.org/api/api-error-codes which can help with diagnosing issues.

Best,
-Catalina

--
You received this message because you are subscribed to the Google Groups "ORCID API Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orcid-api-use...@googlegroups.com.
To post to this group, send email to orcid-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/orcid-api-users.
For more options, visit https://groups.google.com/d/optout.

Tuan Trieu

unread,
Apr 21, 2016, 10:41:35 PM4/21/16
to ORCID API Users, trieumi...@gmail.com
thank you so much, it helpfull

now i want to update BIO ORCID by java code but i can not put xml file .

how i put xml file by java?

Vào 00:20:21 UTC+7 Thứ Sáu, ngày 22 tháng 4 năm 2016, Catalina Oyler đã viết:
Reply all
Reply to author
Forward
0 new messages