|
|
|
|
|
|
|
|
bool testEmptyElement() {
|
|
|
bool testEmptyElement() {
|
|
|
|
|
|
|
|
|
std::string stageContent, stage1Content, stage2Content;
|
|
|
std::string stageContent, stage1Content, stage2Content;
|
|
|
|
|
|
std::string elementXml, element1Xml, element2Xml;
|
|
|
CodeDweller::XMLReaderElement reader("elem");
|
|
|
CodeDweller::XMLReaderElement reader("elem");
|
|
|
|
|
|
|
|
|
reader
|
|
|
reader
|
|
|
.Element("stage", stageContent)
|
|
|
.Element("stage", stageContent)
|
|
|
|
|
|
.RawData(elementXml)
|
|
|
.End("stage")
|
|
|
.End("stage")
|
|
|
.Element("stage1", stage1Content)
|
|
|
.Element("stage1", stage1Content)
|
|
|
|
|
|
.RawData(element1Xml)
|
|
|
.End("stage1")
|
|
|
.End("stage1")
|
|
|
.Element("stage2", stage2Content)
|
|
|
.Element("stage2", stage2Content)
|
|
|
|
|
|
.RawData(element2Xml)
|
|
|
.End("stage2")
|
|
|
.End("stage2")
|
|
|
.End("elem");
|
|
|
.End("elem");
|
|
|
|
|
|
|