// Copyright 2009, Squish Tech, LLC. #ifndef SRC_XML_NAMESPACE_H_ #define SRC_XML_NAMESPACE_H_ #include #include #include "nan.h" namespace libxmljs { class XmlNamespace : public Nan::ObjectWrap { public: xmlNs* xml_obj; xmlDoc* context; // reference-managed context static void Initialize(v8::Local target); static Nan::Persistent constructor_template; explicit XmlNamespace(xmlNs* ns); XmlNamespace(xmlNs* node, const char* prefix, const char* href); ~XmlNamespace(); static v8::Local New(xmlNs* ns); protected: static NAN_METHOD(New); static NAN_METHOD(Href); static NAN_METHOD(Prefix); v8::Local get_href(); v8::Local get_prefix(); friend class Node; }; } // namespace libxmljs #endif // SRC_XML_NAMESPACE_H_