Exemplo n.º 1
0
//-----------------------------------------------------------------------------------------
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() << '\'';
}
Exemplo n.º 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() << '\'';
}