void mp::Torus::read_searchables(std::string url)
{
- if (url.length() == 0)
- return;
-
if (doc)
{
xmlFreeDoc(doc);
doc = 0;
}
-
+ if (url.length() == 0)
+ return;
+
int code;
WRBUF w = get_url(url.c_str(), 0, 0, &code);
if (code == 200)
wrbuf_destroy(w);
}
+xmlDoc *mp::Torus::get_doc()
+{
+ return doc;
+}
+
/*
* Local variables:
* c-basic-offset: 4