#ifndef SRC_XML_PI_H_ #define SRC_XML_PI_H_ #include "libxmljs.h" #include "xml_node.h" namespace libxmljs { class XmlProcessingInstruction : public XmlNode { public: explicit XmlProcessingInstruction(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(Name); static NAN_METHOD(Text); void set_name(const char* name); v8::Local get_name(); void set_content(const char* content); v8::Local get_content(); }; } // namespace libxmljs #endif // SRC_XML_PI_H_