DSpace / xoai

OAI-PMH Java Toolkit
29 stars 52 forks source link

Handle CDATA results #26

Open mmalmeida opened 10 years ago

mmalmeida commented 10 years ago

Example: http://www.scielo.oces.mctes.pt/oai/scielo-oai.php?verb=ListSets&metadataPrefix=oai_dc

The result text is inside CDATA elements. How should this result be handled?

0003-2573
joao-de-melo commented 10 years ago

This is an edge case, but I recon that the parser should be able to read such content.

mmalmeida commented 10 years ago

Adding further information to this issue, what seems to not be working is the situation where more than one CDATA element is present. E.g. <<![CDATA[First CDATA, ]]><![CDATA[Second CDATA]]>> should result in "First CDATA, Second CDATA", but (in ListSetsParser) it is resulting in "First CDATA, ".

Note that this only happens in ListSetsParser.