bool c_XMLWriter::t_startdtdentity(const String& name, bool isparam) { if (xmlValidateName((xmlChar*)name.data(), 0)) { raise_warning("invalid attribute name: %s", name.data()); return false; } int ret = -1; if (m_ptr) { ret = xmlTextWriterStartDTDEntity(m_ptr, isparam, (xmlChar*)name.data()); } return ret != -1; }
bool c_XMLWriter::t_startdtdentity(CStrRef name, bool isparam) { INSTANCE_METHOD_INJECTION_BUILTIN(XMLWriter, XMLWriter::startdtdentity); if (xmlValidateName((xmlChar*)name.data(), 0)) { raise_warning("invalid attribute name: %s", name.data()); return false; } int ret = -1; if (m_ptr) { ret = xmlTextWriterStartDTDEntity(m_ptr, isparam, (xmlChar*)name.data()); } return ret != -1; }