[studxml-users] parser fails to find next_expect as well as attribute

Boris Kolpackov boris at codesynthesis.com
Thu Oct 21 05:59:38 EDT 2021


Oleg Kokorin <ole2mail at mail.com> writes:

> xml::parser p (metaStream, "metadataFinder");
> p.next_expect (xml::parser::start_element, "tt", xml::content::mixed);

Your tt element is in the http://www.w3.org/ns/ttml namespace:

> <tt ... xmlns="http://www.w3.org/ns/ttml" ...>

While your next_expect() call above expects an unqualified element. Try
this:

p.next_expect (xml::parser::start_element,
               "http://www.w3.org/ns/ttml", "tt",
	       xml::content::mixed);



More information about the studxml-users mailing list