21#include <MLException.h>
54 get_tag(
const std::string &book,
const std::string &tag_id);
80 const std::string &attr_name);
105 searchTag(
const std::vector<XMLTag> &list,
const std::string &tag_id,
106 std::vector<XMLTag> &result);
142 tagElement(
const std::string &book,
const std::string::size_type &start,
143 std::string::size_type &end, tag_type &tg_type);
146 tagContent(
const std::string &book,
const std::string::size_type &start,
147 const std::string::size_type &book_end,
XMLTag &tag,
148 std::string::size_type &tag_end);
153 std::shared_ptr<AuxFunc> af;
void searchTag(const std::vector< XMLTag > &list, const std::string &tag_id, std::vector< XMLTag > &result)
Searches tag in tag list.
void removeAllTags(std::string &book)
Removes all tag elements from XML document.
void htmlSymbolsReplacement(std::string &book)
Replaces symbols encoded by "&..." sequences.
std::vector< XMLTag > get_tag(const std::string &book, const std::string &tag_id)
Returns all tags with particular name.
std::vector< XMLTag > listAllTags(const std::string &book)
Parses XML document.
XMLParser(const std::shared_ptr< AuxFunc > &af)
XMLParser constructor.
std::string get_element_attribute(const std::string &element, const std::string &attr_name)
Returns XML tag attribute if it was found.
std::string get_book_encoding(const std::string &book)
Returns XML document encoding.
The XMLTag class.
Definition XMLTag.h:32