Discussion:
[Dspace-tech] how to escape &
Daniel G
2015-08-12 22:50:46 UTC
Permalink
Hi i have a problem importing items, i have a xml file dublin_core.xml whit
the example in your site(because my problem is similar):

https://wiki.duraspace.org/display/DSDOC4x/Importing+and+Exporting+Items+via+Simple+Archive+Format#ImportingandExportingItemsviaSimpleArchiveFormat-Configuringmetadata_[prefix].xmlforDifferentSchema

<?xml version="1.0" encoding="UTF-8"?>
<dublin_core schema="etd">
<dcvalue element="degree" qualifier="department">Computer
Science</dcvalue>
<dcvalue element="degree" qualifier="level">Masters</dcvalue>
<dcvalue element="degree" qualifier="grantor">TexasA&M</dcvalue>
</dublin_core>

The error is "The reference to entity "M" must end with the ';' delimiter."

And the error is because the "&", my question is how to escape the "&"??


Any ideas?
thaks
euler
2015-08-13 00:59:23 UTC
Permalink
Hi Daniel,

Try to replace "&" with "&amp;" or "&#038;" instead.

Hope this help.

Regards,
euler



--
View this message in context: http://dspace.2283337.n4.nabble.com/how-to-escape-tp4679196p4679198.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Loading...