[studxml-users] parser fails to find next_expect as well as
attribute
Boris Kolpackov
boris at codesynthesis.com
Tue Oct 19 09:55:07 EDT 2021
Oleg Kokorin <ole2mail at mail.com> writes:
> the problem is, while parsing attached XML file
>
> using call
> next_expect (all types of content has been tested with the same
> exception failure):
>
> xml::parser p (metaStream, "metadataFinder");
> p.next_expect (xml::parser::start_element, "tt",
> xml::content::mixed);
>
>
> as well as using call
> attribute
>
> xml::parser p (metaStream, "metadataFinder");
> p.next_expect (xml::parser::start_element);
> std::cerr << p.line () << ':' << p.column () << ": start "
> << p.name () << " attributes: "
> << p.attribute("xml:lang") << std::endl;
Can you provide a minimal but complete example that I can use to
parse the attached XML and that reproduces the problem you are
seeing?
More information about the studxml-users
mailing list