if (SmartPtr<libxmlXmlReader> reader = libxml2_reader_Model::parseXML(name, true)) if (SmartPtr<libxml2_reader_Builder> builder = smart_cast<libxml2_reader_Builder>(math_view->view->getBuilder())) { builder->setReader(reader); return TRUE; } return FALSE;
if (DOM::Element root = gmetadom_Model::parseXML(name, true)) { GdomeElement* r = gdome_cast_el(root.gdome_object()); g_assert(r != NULL); const bool res = gtk_math_view_load_root(math_view, r); GdomeException exc = 0; gdome_el_unref(r, &exc); g_assert(exc == 0); return res; } else return FALSE;
gtk_math_view_load_uri(GtkMathView* math_view, const gchar* name){  g_return_val_if_fail(name != NULL, FALSE);  if (SmartPtr<libxmlXmlReader> reader = libxml2_reader_Model::parseXML(name, true))    if (SmartPtr<libxml2_reader_Builder> builder = smart_cast<libxml2_reader_Builder>(math_view->view->getBuilder()))      {	builder->setReader(reader);	return TRUE;      }  return FALSE;}