示例#1
0
文件: f8precomp.cpp 项目: mattyv/fix8
//-----------------------------------------------------------------------------------------
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() << '\'';
}
示例#2
0
//-----------------------------------------------------------------------------------------
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() << '\'';
}