var content = new StringBuilder ("<");
content.append (name);
for (int i = 0; i < attributes.length; i=i+2) {
- content.append_printf (" %s=\"%s\"", attributes[i], attributes[i+1]);
+ if (attributes[i+1] != null) {
+ content.append_printf (" %s=\"%s\"", attributes[i], attributes[i+1]);
+ }
}
content.append (">");
var content = new StringBuilder ("<");
content.append (name);
for (int i = 0; i < attributes.length; i=i+2) {
- content.append_printf (" %s=\"%s\"", attributes[i], attributes[i+1]);
+ if (attributes[i+1] != null) {
+ content.append_printf (" %s=\"%s\"", attributes[i], attributes[i+1]);
+ }
}
content.append ("/>");