MCPcopy Create free account
hub / github.com/comaps/comaps / ParseXML

Function ParseXML

libs/coding/parse_xml.hpp:68–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67template <typename XMLDispatcher, typename Source>
68bool ParseXML(Source & source, XMLDispatcher & dispatcher, bool useCharData = false)
69{
70 SequenceAdapter<Source> adapter(source);
71 XMLSequenceParser<decltype(adapter), XMLDispatcher> parser(adapter, dispatcher, useCharData);
72 try
73 {
74 while (parser.Read()) /* empty */
75 ;
76 }
77 catch (std::exception const & e)
78 {
79 LOG(LWARNING, (e.what()));
80 return false;
81 }
82
83 return true;
84}

Callers 6

TestXMLFunction · 0.85
DeserializeMethod · 0.85
DeserializeMethod · 0.85
LoadSymbolsFunction · 0.85
SkinMethod · 0.85

Calls 2

ReadMethod · 0.45
whatMethod · 0.45

Tested by 2

TestXMLFunction · 0.68