//----------------------------------------------------------------------------------------- void output_attributes(const XmlElement& xf, ostream& outf) { for (XmlElement::XmlAttrs::const_iterator itr(xf.abegin()); itr != xf.aend(); ++itr) outf << ' ' << itr->first << "='" << itr->second << '\''; if (xf.GetLine()) outf << " line=\'" << xf.GetLine() << '\''; }
//----------------------------------------------------------------------------------------- void output_attributes(const XmlElement& xf, ostream& outf, bool required) { for (XmlElement::XmlAttrs::const_iterator itr(xf.abegin()); itr != xf.aend(); ++itr) outf << ' ' << itr->first << "='" << (itr->first == "required" && itr->second == "Y" && !required ? "N" : itr->second) << '\''; if (xf.GetLine()) outf << " line=\'" << xf.GetLine() << '\''; }
//----------------------------------------------------------------------------------------- inline int recover_line(const XmlElement& xf) { return xf.FindAttr("line", xf.GetLine()); }