Lines Matching refs:element
43 void PrintElement(const XmlElement * element);
54 XmlPrinter::PrintXml(std::ostream * pout, const XmlElement * element) {
55 PrintXml(pout, element, NULL, 0);
59 XmlPrinter::PrintXml(std::ostream * pout, const XmlElement * element,
62 printer.PrintElement(element);
76 XmlPrinterImpl::PrintElement(const XmlElement * element) {
81 for (pattr = element->FirstAttr(); pattr; pattr = pattr->NextAttr()) {
92 prefix = xmlnsStack_.AddNewPrefix(element->Name().Namespace(), false);
95 newXmlns.push_back(element->Name().Namespace());
98 for (pattr = element->FirstAttr(); pattr; pattr = pattr->NextAttr()) {
106 // print the element name
107 *pout_ << '<' << xmlnsStack_.FormatQName(element->Name(), false);
110 for (pattr = element->FirstAttr(); pattr; pattr = pattr->NextAttr()) {
127 const XmlChild * pchild = element->FirstChild();
135 if (element->IsCDATA()) {
144 *pout_ << "</" << xmlnsStack_.FormatQName(element->Name(), false) << '>';