@@ -443,14 +443,14 @@ static int nft_chain_snprintf_xml(char *buf, size_t size, struct nft_chain *c)
"<chain name=\"%s\" handle=\"%lu\""
" bytes=\"%lu\" packets=\"%lu\" >\n"
"\t<properties>\n"
- "\t\t<flags value=\"%d\" />\n"
- "\t\t<type value=\"%s\" />\n"
- "\t\t<table value=\"%s\" />\n"
- "\t\t<prio value=\"%d\" />\n"
- "\t\t<use value=\"%d\" />\n"
- "\t\t<hooknum value=\"%d\" />\n"
- "\t\t<policy value=\"%d\" />\n"
- "\t\t<family value=\"%d\" />\n"
+ "\t\t<flags>%d</flags>\n"
+ "\t\t<type>%s</type>\n"
+ "\t\t<table>%s</table>\n"
+ "\t\t<prio>%d</prio>\n"
+ "\t\t<use>%d</use>\n"
+ "\t\t<hooknum>%d</hooknum>\n"
+ "\t\t<policy>%d</policy>\n"
+ "\t\t<family>%d</family>\n"
"\t</properties>\n"
"</chain>\n",
c->name, c->handle, c->bytes, c->packets,
@@ -179,8 +179,9 @@ static int nft_table_snprintf_xml(char *buf, size_t size, struct nft_table *t)
return snprintf(buf, size,
"<table name=\"%s\" >\n"
"\t<properties>\n"
- "\t\t<family value=\"%u\" />\n"
- "\t\t<flags value=\"%d\" table_flags=\"%d\" />\n"
+ "\t\t<family>%u</family>\n"
+ "\t\t<flags>%d</flags>\n"
+ "\t\t<table_flags>%d</table_flags>\n"
"\t</properties>\n"
"</table>\n" ,
t->name, t->family, t->flags, t->table_flags);