solve the XML declaration problem
diff --git a/R/row_spec.R b/R/row_spec.R
index 4944f6d..75e301b 100644
--- a/R/row_spec.R
+++ b/R/row_spec.R
@@ -58,8 +58,7 @@
                                                "font-style: italic;")
     }
   }
-  out <- structure(as.character(kable_xml), format = "html",
-                   class = "knitr_kable")
+  out <- as_kable_xml(kable_xml)
   attributes(out) <- kable_attrs
   return(out)
 }