#ifndef SRC_XML_COMMENT_H_ #define SRC_XML_COMMENT_H_ #include "libxmljs.h" #include "xml_node.h" namespace libxmljs { class XmlComment : public XmlNode { public: explicit XmlComment(xmlNode* node); static void Initialize(v8::Local target); static Nan::Persistent constructor_template; // create new xml comment to wrap the node static v8::Local New(xmlNode* node); protected: static NAN_METHOD(New); static NAN_METHOD(Text); void set_content(const char* content); v8::Local get_content(); }; } // namespace libxmljs #endif // SRC_XML_COMMENT_H_