pelican/utility/src/ConfigNode.cpp
/**
 * @details
 * Sets the contents of the configuration node from the supplied XML string.
 * Note that the string should contain exactly one top-level XML node.
 *
 * @param xmlString The XML string to use.
 */
@details
Sets the contents of the configuration node from the supplied XML string.
Note that the string should contain exactly one top-level XML node.

@param xmlString The XML string to use.
@details Sets the contents of the configuration node from the supplied XML string . Note that the string should contain exactly one top - level XML node . @param xmlString The XML string to use .
void ConfigNode::setFromString(const QString xmlString)
{
   QDomDocument doc;
   QString error;
   int line, column;
   if (!doc.setContent(xmlString, true, &error, &line, &column)) {
       throw QString("ConfigNode::setFromString(): Error parsing XML "
               "(Line: %1 Col: %2): %3.").arg(line).arg(column).arg(error);
   }
   _config = doc.documentElement();
}
void ConfigNode :: setFromString ( const QString xmlString ) { QDomDocument doc ; QString error ; int line , column ; if ( ! doc . setContent ( xmlString , true , & error , & line , & column ) ) { throw QString ( " " " " ) . arg ( line ) . arg ( column ) . arg ( error ) ; } _config = doc . documentElement ( ) ; }
@details
 Sets the contents of the configuration node from the supplied XML string.
@details Sets the contents of the configuration node from the supplied XML string .