Shaka Player Embedded
|
#include <xml_document_parser.h>
Public Member Functions | |
XMLDocumentParser (RefPtr< Document > document) | |
~XMLDocumentParser () | |
ExceptionOr< RefPtr< Document > > | Parse (const std::string &source) |
void | EndDocument () |
void | StartElement (const std::string &local_name, optional< std::string > namespace_uri, optional< std::string > namespace_prefix, size_t attribute_count, const char **attributes) |
void | EndElement () |
void | Text (const std::string &text) |
void | Comment (const std::string &text) |
void | SetException (JsError error) |
Parses XML text data into a DOM tree. All work is synchronous and no events are fired. This also is a strict parser, so it will reject documents that some browsers may accept.
The following features are not supported:
Definition at line 46 of file xml_document_parser.h.
Definition at line 118 of file xml_document_parser.cc.
shaka::js::dom::XMLDocumentParser::~XMLDocumentParser | ( | ) |
Definition at line 121 of file xml_document_parser.cc.
void shaka::js::dom::XMLDocumentParser::Comment | ( | const std::string & | text | ) |
Definition at line 203 of file xml_document_parser.cc.
void shaka::js::dom::XMLDocumentParser::EndDocument | ( | ) |
Definition at line 154 of file xml_document_parser.cc.
void shaka::js::dom::XMLDocumentParser::EndElement | ( | ) |
Definition at line 193 of file xml_document_parser.cc.
ExceptionOr< RefPtr< Document > > shaka::js::dom::XMLDocumentParser::Parse | ( | const std::string & | source | ) |
Definition at line 123 of file xml_document_parser.cc.
void shaka::js::dom::XMLDocumentParser::SetException | ( | JsError | error | ) |
Definition at line 208 of file xml_document_parser.cc.
void shaka::js::dom::XMLDocumentParser::StartElement | ( | const std::string & | local_name, |
optional< std::string > | namespace_uri, | ||
optional< std::string > | namespace_prefix, | ||
size_t | attribute_count, | ||
const char ** | attributes | ||
) |
Definition at line 158 of file xml_document_parser.cc.
void shaka::js::dom::XMLDocumentParser::Text | ( | const std::string & | text | ) |
Definition at line 199 of file xml_document_parser.cc.