parent
4907c7e3e4
commit
bccc0607d1
|
@ -235,17 +235,17 @@ private:
|
||||||
|
|
||||||
void FromXmlV2() const {
|
void FromXmlV2() const {
|
||||||
const char xmldata[] = "<?xml version=\"1.0\"?>\n"
|
const char xmldata[] = "<?xml version=\"1.0\"?>\n"
|
||||||
"<error id=\"errorId\""
|
"<error id=\"errorId\""
|
||||||
" severity=\"error\""
|
" severity=\"error\""
|
||||||
" cwe=\"123\""
|
" cwe=\"123\""
|
||||||
" inconclusive=\"true\""
|
" inconclusive=\"true\""
|
||||||
" msg=\"Programming error.\""
|
" msg=\"Programming error.\""
|
||||||
" verbose=\"Verbose error\""
|
" verbose=\"Verbose error\""
|
||||||
" hash=\"456\""
|
" hash=\"456\""
|
||||||
">\n"
|
">\n"
|
||||||
" <location file=\"bar.cpp\" line=\"8\" column=\"1\"/>\n"
|
" <location file=\"bar.cpp\" line=\"8\" column=\"1\"/>\n"
|
||||||
" <location file=\"foo.cpp\" line=\"5\" column=\"2\"/>\n"
|
" <location file=\"foo.cpp\" line=\"5\" column=\"2\"/>\n"
|
||||||
"</error>";
|
"</error>";
|
||||||
tinyxml2::XMLDocument doc;
|
tinyxml2::XMLDocument doc;
|
||||||
doc.Parse(xmldata, sizeof(xmldata));
|
doc.Parse(xmldata, sizeof(xmldata));
|
||||||
ErrorMessage msg(doc.FirstChildElement());
|
ErrorMessage msg(doc.FirstChildElement());
|
||||||
|
|
Loading…
Reference in New Issue