Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
using namespace dash::http;
using namespace dash::mpd;
-DOMParser::DOMParser (stream_t *stream)
+DOMParser::DOMParser (stream_t *stream) :
+ root( NULL ),
+ stream( stream ),
+ vlc_xml( NULL ),
+ vlc_reader( NULL )
{
- this->stream = stream;
- this->init();
}
+
DOMParser::~DOMParser ()
{
if(this->vlc_reader)
this->print(node->getSubNodes().at(i), offset);
}
}
-void DOMParser::init ()
-{
- this->root = NULL;
- this->vlc_reader = NULL;
-}
+
void DOMParser::print ()
{
this->print(this->root, 0);
xml_t *vlc_xml;
xml_reader_t *vlc_reader;
- void init ();
Node* processNode ();
void addAttributesToNode (Node *node);
void print (Node *node, int offset);