<?xml version="1.0" encoding="UTF-8"?>
<layouts> <lay pos="15" bold="true"/> <layoff pos="12"/> <layin pos="17"/> </layouts>
TElem elays = eroot.subnode(L"layouts"); for (TElem e = elays.begin(); (e.elem && (e != eroot.end())); e++) { int pos = e.attrInt(L"pos", -1); bool bold = e.attrBool(L"bold", false); // we suggest defaults, in case the attribute is missing wstring id = e.name(); // returns "lay" or "layoff" or "layin" }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)