Ignore:
Timestamp:
2008-10-15T17:25:25+13:00 (16 years ago)
Author:
mdewsnip
Message:

OAI server now calls xml_safe() on metadata output, to prevent non-well-formed XML from messing things up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/oaiservr/metaformat.cpp

    r15428 r17546  
     1#include <fstream>
    12#include "metaformat.h"
     3#include "gsdltools.h"
    24#include "gsdlunicode.h"
    3 #include <fstream>
     5#include "recptprototools.h"
    46
    5 #include "recptprototools.h"
    67
    78metaformat::metaformat()
     
    3031  for (int item = 0; item < values.size(); ++item) {
    3132    if (this->oaiConfigure->getOAIVersion() >= 200) { // TODO: GRB: This code may need to be subclassed by dc for 200 and later...
    32       output << outconvert << "        <" << this->formatPrefix() << ":" << label << ">" << values[item] << "</" << this->formatPrefix() << ":" << label << ">\n";
     33      output << outconvert << "        <" << this->formatPrefix() << ":" << label << ">" << xml_safe(values[item]) << "</" << this->formatPrefix() << ":" << label << ">\n";
    3334    }
    3435    else {
    35       output << outconvert << "        <" << label << ">" << values[item] << "</" << label << ">\n";
     36      output << outconvert << "        <" << label << ">" << xml_safe(values[item]) << "</" << label << ">\n";
    3637    }
    3738  }
Note: See TracChangeset for help on using the changeset viewer.