summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--third_party/libxml/chromium/libxml_utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/libxml/chromium/libxml_utils.h b/third_party/libxml/chromium/libxml_utils.h
index d230c5d..80d05f6 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) {