pelican/utility/src/Config.cpp
/**
 * @details
 * sets the contents from the xml provided in the string
 */
@details
sets the contents from the xml provided in the string
@details sets the contents from the xml provided in the string
void Config::setXML( const QString& xml )
{
    _document.clear();
    _document = QDomDocument("pelican");
    QString error;
    int line, column;
    if (!_document.setContent( xml, &error, &line, &column)) {
        throw QString("Config::setXML(): Error parsing XML "
                "(Line: %1 Col: %2): %3.\n"
                "-----------------------\n"
                "%4\n---------------------\n").
                arg(line).arg(column).arg(error).arg(xml);
    }
    preprocess(_document);
}
void Config :: setXML ( const QString & xml ) { _document . clear ( ) ; _document = QDomDocument ( " " ) ; QString error ; int line , column ; if ( ! _document . setContent ( xml , & error , & line , & column ) ) { throw QString ( " " " \n " " \n " " \n \n " ) . arg ( line ) . arg ( column ) . arg ( error ) . arg ( xml ) ; } preprocess ( _document ) ; }
@details
 sets the contents from the xml provided in the string
@details sets the contents from the xml provided in the string
// Read the XML configuration file into the QDomDocument.