15 #ifndef SHAKA_EMBEDDED_JS_DOM_XML_DOCUMENT_PARSER_H_ 16 #define SHAKA_EMBEDDED_JS_DOM_XML_DOCUMENT_PARSER_H_ 58 size_t attribute_count,
59 const char** attributes);
61 void Text(
const std::string& text);
62 void Comment(
const std::string& text);
67 void FinishTextNode();
71 std::string current_text_;
72 std::unique_ptr<JsError> error_;
79 #endif // SHAKA_EMBEDDED_JS_DOM_XML_DOCUMENT_PARSER_H_
XMLDocumentParser(RefPtr< Document > document)
void Text(const std::string &text)
void StartElement(const std::string &local_name, optional< std::string > namespace_uri, optional< std::string > namespace_prefix, size_t attribute_count, const char **attributes)
ExceptionOr< RefPtr< Document > > Parse(const std::string &source)
void SetException(JsError error)
void Comment(const std::string &text)