Lines Matching refs:doc
30 std::string ToXml(const Document& doc);
99 std::string XmlWriter::ToXml(const Document& doc) { in ToXml() argument
102 if (doc.has_version() || doc.has_encoding() || doc.has_standalone()) { in ToXml()
104 if (doc.has_version()) in ToXml()
105 ToXml("version", (doc.version().size() == 7) ? "1.0" : doc.version()); in ToXml()
106 if (doc.has_encoding()) ToXml("encoding", doc.encoding()); in ToXml()
107 if (doc.has_standalone()) in ToXml()
108 ToXml("encoding", doc.standalone() ? "yes" : "no"); in ToXml()
112 for (int i = 0; i < doc.misk1_size(); ++i) ToXml(doc.misk1(i)); in ToXml()
113 if (doc.has_doctype()) ToXml(doc.doctype()); in ToXml()
114 ToXml(doc.element()); in ToXml()
115 for (int i = 0; i < doc.misk2_size(); ++i) ToXml(doc.misk2(i)); in ToXml()