Shaka Player Embedded
Public Member Functions | List of all members
shaka::js::dom::XMLDocumentParser Class Reference

#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)
 

Detailed Description

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.

Constructor & Destructor Documentation

§ XMLDocumentParser()

shaka::js::dom::XMLDocumentParser::XMLDocumentParser ( RefPtr< Document document)
explicit

Definition at line 118 of file xml_document_parser.cc.

§ ~XMLDocumentParser()

shaka::js::dom::XMLDocumentParser::~XMLDocumentParser ( )

Definition at line 121 of file xml_document_parser.cc.

Member Function Documentation

§ Comment()

void shaka::js::dom::XMLDocumentParser::Comment ( const std::string &  text)

Definition at line 203 of file xml_document_parser.cc.

§ EndDocument()

void shaka::js::dom::XMLDocumentParser::EndDocument ( )

Definition at line 154 of file xml_document_parser.cc.

§ EndElement()

void shaka::js::dom::XMLDocumentParser::EndElement ( )

Definition at line 193 of file xml_document_parser.cc.

§ Parse()

ExceptionOr< RefPtr< Document > > shaka::js::dom::XMLDocumentParser::Parse ( const std::string &  source)

Definition at line 123 of file xml_document_parser.cc.

§ SetException()

void shaka::js::dom::XMLDocumentParser::SetException ( JsError  error)

Definition at line 208 of file xml_document_parser.cc.

§ StartElement()

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.

§ Text()

void shaka::js::dom::XMLDocumentParser::Text ( const std::string &  text)

Definition at line 199 of file xml_document_parser.cc.


The documentation for this class was generated from the following files: