bool c_XMLWriter::t_startdtdelement(const String& qualifiedname) { if (xmlValidateName((xmlChar*)qualifiedname.data(), 0)) { raise_warning("invalid element name: %s", qualifiedname.data()); return false; } int ret = -1; if (m_ptr) { ret = xmlTextWriterStartDTDElement(m_ptr, (xmlChar*)qualifiedname.data()); } return ret != -1; }
bool c_XMLWriter::t_startdtdelement(CStrRef qualifiedname) { INSTANCE_METHOD_INJECTION_BUILTIN(XMLWriter, XMLWriter::startdtdelement); if (xmlValidateName((xmlChar*)qualifiedname.data(), 0)) { raise_warning("invalid element name: %s", qualifiedname.data()); return false; } int ret = -1; if (m_ptr) { ret = xmlTextWriterStartDTDElement(m_ptr, (xmlChar*)qualifiedname.data()); } return ret != -1; }