object node::search_namespace_by_prefix(value const &prefix_) { local_root_scope scope; xmlChar const *prefix = 0; if (!prefix_.is_string() && !prefix_.is_undefined() && !prefix_.is_null()) throw exception("Could not search for non-string namespace prefix"); if (prefix_.is_string()) prefix = (xmlChar const *) prefix_.get_string().c_str(); xmlNsPtr ns = xmlSearchNs(ptr->doc, ptr, prefix); return namespace_::create(ns); }
boost::optional<T> perform(value const &v) { if (v.is_undefined() || v.is_null()) return boost::optional<T>(); return base.perform(v); }