bool c_xmlwriter::t_startdtd(CStrRef qualifiedname, CStrRef publicid /* = null_string */, CStrRef systemid /* = null_string */) { int ret = -1; if (m_ptr) { ret = xmlTextWriterStartDTD(m_ptr, (xmlChar*)qualifiedname.data(), xmls(publicid), xmls(systemid)); } return ret != -1; }
bool c_XMLWriter::t_startdtd(const String& qualifiedname, const String& publicid /* = null_string */, const String& systemid /* = null_string */) { int ret = -1; if (m_ptr) { ret = xmlTextWriterStartDTD(m_ptr, (xmlChar*)qualifiedname.data(), xmls(publicid), xmls(systemid)); } return ret != -1; }
bool c_XMLWriter::t_writedtd(const String& name, const String& publicid /* = null_string */, const String& systemid /* = null_string */, const String& subset /* = null_string */) { int ret = -1; if (m_ptr) { ret = xmlTextWriterWriteDTD(m_ptr, (xmlChar*)name.data(), xmls(publicid), xmls(systemid), xmls(subset)); } return ret != -1; }
bool c_XMLWriter::t_startdocument(const String& version /* = "1.0" */, const String& encoding /* = null_string */, const String& standalone /* = null_string */) { int ret = -1; if (m_ptr) { ret = xmlTextWriterStartDocument(m_ptr, (const char *)xmls(version), (const char *)xmls(encoding), (const char *)xmls(standalone)); } return ret != -1; }
bool c_xmlwriter::t_writedtd(CStrRef name, CStrRef publicid /* = null_string */, CStrRef systemid /* = null_string */, CStrRef subset /* = null_string */) { int ret = -1; if (m_ptr) { ret = xmlTextWriterWriteDTD(m_ptr, (xmlChar*)name.data(), xmls(publicid), xmls(systemid), xmls(subset)); } return ret != -1; }
bool c_XMLWriter::t_startdtd(CStrRef qualifiedname, CStrRef publicid /* = null_string */, CStrRef systemid /* = null_string */) { INSTANCE_METHOD_INJECTION_BUILTIN(XMLWriter, XMLWriter::startdtd); int ret = -1; if (m_ptr) { ret = xmlTextWriterStartDTD(m_ptr, (xmlChar*)qualifiedname.data(), xmls(publicid), xmls(systemid)); } return ret != -1; }
bool c_XMLWriter::t_writedtd(CStrRef name, CStrRef publicid /* = null_string */, CStrRef systemid /* = null_string */, CStrRef subset /* = null_string */) { INSTANCE_METHOD_INJECTION_BUILTIN(XMLWriter, XMLWriter::writedtd); int ret = -1; if (m_ptr) { ret = xmlTextWriterWriteDTD(m_ptr, (xmlChar*)name.data(), xmls(publicid), xmls(systemid), xmls(subset)); } return ret != -1; }
bool c_XMLWriter::t_startdocument(CStrRef version /* = "1.0" */, CStrRef encoding /* = null_string */, CStrRef standalone /* = null_string */) { INSTANCE_METHOD_INJECTION_BUILTIN(XMLWriter, XMLWriter::startdocument); int ret = -1; if (m_ptr) { ret = xmlTextWriterStartDocument(m_ptr, (const char *)xmls(version), (const char *)xmls(encoding), (const char *)xmls(standalone)); } return ret != -1; }
bool c_XMLWriter::t_startdocument(const String& version /* = "1.0" */, const String& encoding /* = null_string */, const String& standalone /* = null_string */) { int ret = -1; if (m_ptr) { const auto pencoding = encoding.empty() ? nullptr : xmls(encoding); const auto pstandalone = standalone.empty() ? nullptr : xmls(standalone); ret = xmlTextWriterStartDocument(m_ptr, (const char *)xmls(version), (const char *)pencoding, (const char *)pstandalone); } return ret != -1; }
bool c_XMLWriter::t_writedtdentity(const String& name, const String& content, bool pe /* = false */, const String& publicid /* = null_string */, const String& systemid /* = null_string */, const String& ndataid /* = null_string */) { if (xmlValidateName((xmlChar*)name.data(), 0)) { raise_warning("invalid element name: %s", name.data()); return false; } int ret = -1; if (m_ptr) { ret = xmlTextWriterWriteDTDEntity(m_ptr, pe, (xmlChar*)name.data(), xmls(publicid), xmls(systemid), xmls(ndataid), (xmlChar*)content.data()); } return ret != -1; }
bool c_XMLWriter::t_writedtdentity(CStrRef name, CStrRef content, bool pe /* = false */, CStrRef publicid /* = null_string */, CStrRef systemid /* = null_string */, CStrRef ndataid /* = null_string */) { INSTANCE_METHOD_INJECTION_BUILTIN(XMLWriter, XMLWriter::writedtdentity); if (xmlValidateName((xmlChar*)name.data(), 0)) { raise_warning("invalid element name: %s", name.data()); return false; } int ret = -1; if (m_ptr) { ret = xmlTextWriterWriteDTDEntity(m_ptr, pe, (xmlChar*)name.data(), xmls(publicid), xmls(systemid), xmls(ndataid), (xmlChar*)content.data()); } return ret != -1; }