1555 for (ptr = ptr->children; ptr; ptr = ptr->next)
1557 if (ptr->type != XML_ELEMENT_NODE)
1559 if (!strcmp((
const char *) ptr->name,
"resultset"))
1561 const struct _xmlAttr *attr;
1562 for (attr = ptr->properties; attr; attr = attr->next)
1564 if (!strcmp((
const char *) attr->name,
"ttl"))
1565 m_p->m_resultset_ttl =
1566 mp::xml::get_int(attr->children, 30);
1567 else if (!strcmp((
const char *) attr->name,
"max"))
1569 m_p->m_resultset_max =
1570 mp::xml::get_int(attr->children, 10);
1572 else if (!strcmp((
const char *) attr->name,
"optimizesearch"))
1574 m_p->m_optimize_search =
1575 mp::xml::get_bool(attr->children,
true);
1577 else if (!strcmp((
const char *) attr->name,
"restart"))
1579 m_p->m_restart = mp::xml::get_bool(attr->children,
true);
1582 throw mp::filter::FilterException(
1583 "Bad attribute " + std::string((
const char *)
1587 else if (!strcmp((
const char *) ptr->name,
"session"))
1589 const struct _xmlAttr *attr;
1590 for (attr = ptr->properties; attr; attr = attr->next)
1592 if (!strcmp((
const char *) attr->name,
"ttl"))
1593 m_p->m_session_ttl =
1594 mp::xml::get_int(attr->children, 90);
1595 else if (!strcmp((
const char *) attr->name,
"max"))
1596 m_p->m_session_max =
1597 mp::xml::get_int(attr->children, 100);
1599 throw mp::filter::FilterException(
1600 "Bad attribute " + std::string((
const char *)
1604 else if (!strcmp((
const char *) ptr->name,
"init"))
1606 const struct _xmlAttr *attr;
1607 for (attr = ptr->properties; attr; attr = attr->next)
1609 if (!strcmp((
const char *) attr->name,
"maximum-record-size"))
1610 m_p->m_maximumRecordSize =
1611 mp::xml::get_int(attr->children, 0);
1612 else if (!strcmp((
const char *) attr->name,
1613 "preferred-message-size"))
1614 m_p->m_preferredMessageSize =
1615 mp::xml::get_int(attr->children, 0);
1616 else if (!strcmp((
const char *) attr->name,
1618 m_p->m_ignore_auth =
1619 mp::xml::get_bool(attr->children,
false);
1621 throw mp::filter::FilterException(
1622 "Bad attribute " + std::string((
const char *)
1628 throw mp::filter::FilterException(
"Bad element "
1629 + std::string((
const char *)