Index: third_party/libxml/chromium/libxml_utils.h |
diff --git a/third_party/libxml/chromium/libxml_utils.h b/third_party/libxml/chromium/libxml_utils.h |
index d230c5d9b23f3a5a561425a12beb49501de87256..80d05f67d8df1a66fe3b5fe280af96fb34fbabd7 100644 |
--- a/third_party/libxml/chromium/libxml_utils.h |
+++ b/third_party/libxml/chromium/libxml_utils.h |
@@ -133,6 +133,12 @@ class XmlWriter { |
return xmlTextWriterEndElement(writer_) >= 0; |
} |
+ // Appends to the content of the current open element. |
+ bool AppendElementContent(const std::string& content) { |
+ return xmlTextWriterWriteString(writer_, |
+ BAD_CAST content.c_str()) >= 0; |
+ } |
+ |
// Adds an attribute to the current open element. Returns false on error. |
bool AddAttribute(const std::string& attribute_name, |
const std::string& attribute_value) { |