Mercurial > hg > orthanc
comparison UnitTestsSources/FromDcmtkTests.cpp @ 3222:63681433b0fc
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 14 Feb 2019 14:06:07 +0100 |
parents | 4be505c2ac56 |
children | c94f23198946 |
comparison
equal
deleted
inserted
replaced
3221:4be505c2ac56 | 3222:63681433b0fc |
---|---|
1557 // http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_F.3.html#table_F.3.1-1 | 1557 // http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_F.3.html#table_F.3.1-1 |
1558 std::string xml; | 1558 std::string xml; |
1559 visitor.FormatXml(xml); | 1559 visitor.FormatXml(xml); |
1560 | 1560 |
1561 pugi::xml_document doc; | 1561 pugi::xml_document doc; |
1562 doc.load_string(xml.c_str()); | 1562 doc.load_buffer(xml.c_str(), xml.size()); |
1563 | 1563 |
1564 pugi::xpath_node node = doc.select_single_node("//NativeDicomModel/DicomAttribute[@tag=\"00080005\"]/Value"); | 1564 pugi::xpath_node node = doc.select_single_node("//NativeDicomModel/DicomAttribute[@tag=\"00080005\"]/Value"); |
1565 ASSERT_STREQ("ISO_IR 192", node.node().text().as_string()); | 1565 ASSERT_STREQ("ISO_IR 192", node.node().text().as_string()); |
1566 | 1566 |
1567 node = doc.select_single_node("//NativeDicomModel/DicomAttribute[@tag=\"00080005\"]"); | 1567 node = doc.select_single_node("//NativeDicomModel/DicomAttribute[@tag=\"00080005\"]"); |