本文整理汇总了C++中xmlTextWriterStartElement函数的典型用法代码示例。如果您正苦于以下问题:C++ xmlTextWriterStartElement函数的具体用法?C++ xmlTextWriterStartElement怎么用?C++ xmlTextWriterStartElement使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xmlTextWriterStartElement函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: INSTANCE_METHOD_INJECTION_BUILTIN
bool c_XMLWriter::t_writeelement(CStrRef name,
CStrRef content /* = null_string */) {
INSTANCE_METHOD_INJECTION_BUILTIN(XMLWriter, XMLWriter::writeelement);
if (xmlValidateName((xmlChar*)name.data(), 0)) {
raise_warning("invalid element name: %s", name.data());
return false;
}
int ret = -1;
if (m_ptr) {
if (content.isNull()) {
ret = xmlTextWriterStartElement(m_ptr, (xmlChar*)name.data());
if (ret == -1) return false;
ret = xmlTextWriterEndElement(m_ptr);
if (ret == -1) return false;
} else {
ret = xmlTextWriterWriteElement(m_ptr, (xmlChar*)name.data(),
(xmlChar*)content.data());
}
}
return ret != -1;
}
示例2: xmlTextWriterStartElement
void PnlFmncNavLabbook::Tag::writeXML(
const uint ixFmncVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagFmncNavLabbook";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemFmncNavLabbook";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixFmncVLocale == VecFmncVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Electronic labbook module");
writeStringAttr(wr, itemtag, "sref", "CptStp", "recipes");
writeStringAttr(wr, itemtag, "sref", "CptPrj", "projects");
writeStringAttr(wr, itemtag, "sref", "CptRun", "runs");
writeStringAttr(wr, itemtag, "sref", "CptAct", "activities");
writeStringAttr(wr, itemtag, "sref", "CptSep", "steps");
writeStringAttr(wr, itemtag, "sref", "CptSmp", "samples");
} else if (ixFmncVLocale == VecFmncVLocale::DECH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Elektronisches Laborbuch");
writeStringAttr(wr, itemtag, "sref", "CptStp", "Rezepte");
writeStringAttr(wr, itemtag, "sref", "CptPrj", "Projekte");
writeStringAttr(wr, itemtag, "sref", "CptRun", "L\\u00e4ufe");
writeStringAttr(wr, itemtag, "sref", "CptAct", "Aktivit\\u00e4ten");
writeStringAttr(wr, itemtag, "sref", "CptSep", "Schritte");
writeStringAttr(wr, itemtag, "sref", "CptSmp", "Samples");
} else if (ixFmncVLocale == VecFmncVLocale::FRCH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Partie cahier \\u00e9lectronique");
writeStringAttr(wr, itemtag, "sref", "CptStp", "recettes");
writeStringAttr(wr, itemtag, "sref", "CptPrj", "projets");
writeStringAttr(wr, itemtag, "sref", "CptRun", "d\\u00e9roulements");
writeStringAttr(wr, itemtag, "sref", "CptAct", "activit\\u00e9s");
writeStringAttr(wr, itemtag, "sref", "CptSep", "\\u00e9tapes");
writeStringAttr(wr, itemtag, "sref", "CptSmp", "\\u00e9chantillons");
};
xmlTextWriterEndElement(wr);
};
示例3: xmlTextWriterStartElement
void PnlFmncTolRec::StatApp::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
, const bool initdoneDetail
, const bool initdoneKSteppar
, const bool initdoneKToolchar
, const bool initdoneAAvl
, const bool initdoneAChar
, const bool initdoneARes
, const bool initdoneAUtil
, const bool initdone1NArticle
, const bool initdoneRlv1NStep
, const bool initdoneRef1NFile
, const bool initdoneMNTooltype
, const bool initdoneMNFabuser
, const bool initdoneSvcMNOrg
) {
if (difftag.length() == 0) difftag = "StatAppFmncTolRec";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StatitemAppFmncTolRec";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeBoolAttr(wr, itemtag, "sref", "initdoneDetail", initdoneDetail);
writeBoolAttr(wr, itemtag, "sref", "initdoneKSteppar", initdoneKSteppar);
writeBoolAttr(wr, itemtag, "sref", "initdoneKToolchar", initdoneKToolchar);
writeBoolAttr(wr, itemtag, "sref", "initdoneAAvl", initdoneAAvl);
writeBoolAttr(wr, itemtag, "sref", "initdoneAChar", initdoneAChar);
writeBoolAttr(wr, itemtag, "sref", "initdoneARes", initdoneARes);
writeBoolAttr(wr, itemtag, "sref", "initdoneAUtil", initdoneAUtil);
writeBoolAttr(wr, itemtag, "sref", "initdone1NArticle", initdone1NArticle);
writeBoolAttr(wr, itemtag, "sref", "initdoneRlv1NStep", initdoneRlv1NStep);
writeBoolAttr(wr, itemtag, "sref", "initdoneRef1NFile", initdoneRef1NFile);
writeBoolAttr(wr, itemtag, "sref", "initdoneMNTooltype", initdoneMNTooltype);
writeBoolAttr(wr, itemtag, "sref", "initdoneMNFabuser", initdoneMNFabuser);
writeBoolAttr(wr, itemtag, "sref", "initdoneSvcMNOrg", initdoneSvcMNOrg);
xmlTextWriterEndElement(wr);
};
示例4: xmlTextWriterStartElement
void PnlFmncArtList::Tag::writeXML(
const uint ixFmncVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagFmncArtList";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemFmncArtList";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixFmncVLocale == VecFmncVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Articles");
writeStringAttr(wr, itemtag, "sref", "TcoSrf", "Reference");
writeStringAttr(wr, itemtag, "sref", "TcoTit", "Name");
writeStringAttr(wr, itemtag, "sref", "TcoOrg", "Manufacturer");
writeStringAttr(wr, itemtag, "sref", "TcoTol", "Tool");
writeStringAttr(wr, itemtag, "sref", "TcoTyp", "Type");
} else if (ixFmncVLocale == VecFmncVLocale::DECH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Artikel");
writeStringAttr(wr, itemtag, "sref", "TcoSrf", "Referenz");
writeStringAttr(wr, itemtag, "sref", "TcoTit", "Name");
writeStringAttr(wr, itemtag, "sref", "TcoOrg", "Hersteller");
writeStringAttr(wr, itemtag, "sref", "TcoTol", "Ger\\u00e4t");
writeStringAttr(wr, itemtag, "sref", "TcoTyp", "Typ");
} else if (ixFmncVLocale == VecFmncVLocale::FRCH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Articles");
writeStringAttr(wr, itemtag, "sref", "TcoSrf", "R\\u00e9f\\u00e9rence");
writeStringAttr(wr, itemtag, "sref", "TcoTit", "Nom");
writeStringAttr(wr, itemtag, "sref", "TcoOrg", "Fournisseur");
writeStringAttr(wr, itemtag, "sref", "TcoTol", "\\u00e9quipement");
writeStringAttr(wr, itemtag, "sref", "TcoTyp", "Type");
};
writeStringAttr(wr, itemtag, "sref", "Trs", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::GOTO, ixFmncVLocale)) + " ...");
writeStringAttr(wr, itemtag, "sref", "TxtShowing1", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::SHOWLONG, ixFmncVLocale)));
writeStringAttr(wr, itemtag, "sref", "TxtShowing2", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::EMPLONG, ixFmncVLocale)));
xmlTextWriterEndElement(wr);
};
示例5: xmlTextWriterStartElement
void PnlFmncSmpList::Tag::writeXML(
const uint ixFmncVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagFmncSmpList";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemFmncSmpList";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixFmncVLocale == VecFmncVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Samples");
writeStringAttr(wr, itemtag, "sref", "TcoSrf", "Identifier");
writeStringAttr(wr, itemtag, "sref", "TcoSup", "Parent");
writeStringAttr(wr, itemtag, "sref", "TcoArt", "Article");
writeStringAttr(wr, itemtag, "sref", "TcoMat", "Material");
writeStringAttr(wr, itemtag, "sref", "TcoSte", "State");
} else if (ixFmncVLocale == VecFmncVLocale::DECH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Samples");
writeStringAttr(wr, itemtag, "sref", "TcoSrf", "Bezeichner");
writeStringAttr(wr, itemtag, "sref", "TcoSup", "Urpsrung");
writeStringAttr(wr, itemtag, "sref", "TcoArt", "Artikel");
writeStringAttr(wr, itemtag, "sref", "TcoMat", "Material");
writeStringAttr(wr, itemtag, "sref", "TcoSte", "Status");
} else if (ixFmncVLocale == VecFmncVLocale::FRCH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "\\u00e9chantillons");
writeStringAttr(wr, itemtag, "sref", "TcoSrf", "Identifiant");
writeStringAttr(wr, itemtag, "sref", "TcoSup", "Origin");
writeStringAttr(wr, itemtag, "sref", "TcoArt", "Article");
writeStringAttr(wr, itemtag, "sref", "TcoMat", "Material");
writeStringAttr(wr, itemtag, "sref", "TcoSte", "\\u00e9tat");
};
writeStringAttr(wr, itemtag, "sref", "Trs", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::GOTO, ixFmncVLocale)) + " ...");
writeStringAttr(wr, itemtag, "sref", "TxtShowing1", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::SHOWLONG, ixFmncVLocale)));
writeStringAttr(wr, itemtag, "sref", "TxtShowing2", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::EMPLONG, ixFmncVLocale)));
xmlTextWriterEndElement(wr);
};
示例6: xmlTextWriterStartElement
void PnlPlnrCtpKCalcvar::DpchEngData::writeXML(
const uint ixPlnrVLocale
, pthread_mutex_t* mScr
, map<ubigint,string>& scr
, map<string,ubigint>& descr
, xmlTextWriter* wr
) {
xmlTextWriterStartElement(wr, BAD_CAST "DpchEngPlnrCtpKCalcvarData");
xmlTextWriterWriteAttribute(wr, BAD_CAST "xmlns", BAD_CAST "http://www.epsitechnologies.com/plnr");
if (has(JREF)) writeString(wr, "scrJref", Scr::scramble(mScr, scr, descr, jref));
if (has(CONTINF)) continf.writeXML(wr);
if (has(FEEDFCSIQST)) feedFCsiQst.writeXML(wr);
if (has(STATAPP)) StatApp::writeXML(wr);
if (has(STATSHR)) statshr.writeXML(wr);
if (has(STGIAC)) stgiac.writeXML(wr);
if (has(TAG)) Tag::writeXML(ixPlnrVLocale, wr);
if (has(RST)) rst.writeXML(wr);
if (has(STATAPPQRY)) QryPlnrCtpKCalcvar::StatApp::writeXML(wr);
if (has(STATSHRQRY)) statshrqry.writeXML(wr);
if (has(STGIACQRY)) stgiacqry.writeXML(wr);
xmlTextWriterEndElement(wr);
};
示例7: xmlTextWriterStartElement
void QryPlnrDtpList::StatApp::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
, const uint firstcol
, const uint jnumFirstdisp
, const uint ncol
, const uint ndisp
) {
if (difftag.length() == 0) difftag = "StatAppQryPlnrDtpList";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StatitemAppQryPlnrDtpList";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeUintAttr(wr, itemtag, "sref", "firstcol", firstcol);
writeUintAttr(wr, itemtag, "sref", "jnumFirstdisp", jnumFirstdisp);
writeUintAttr(wr, itemtag, "sref", "ncol", ncol);
writeUintAttr(wr, itemtag, "sref", "ndisp", ndisp);
xmlTextWriterEndElement(wr);
};
示例8: xmlTextWriterStartElement
void CrdPlnrClc::Tag::writeXML(
const uint ixPlnrVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagPlnrClc";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemPlnrClc";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixPlnrVLocale == VecPlnrVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "MitCrdUcs", "Run use case ...");
writeStringAttr(wr, itemtag, "sref", "MitCrdGpv", "Generate result data plot or video ...");
writeStringAttr(wr, itemtag, "sref", "MitCrdEtx", "Export result data as text ...");
};
writeStringAttr(wr, itemtag, "sref", "MitAppAbt", StrMod::cap(VecPlnrVTag::getTitle(VecPlnrVTag::ABOUT, ixPlnrVLocale)) + " ...");
writeStringAttr(wr, itemtag, "sref", "MrlAppHlp", StrMod::cap(VecPlnrVTag::getTitle(VecPlnrVTag::HELP, ixPlnrVLocale)) + " ...");
xmlTextWriterEndElement(wr);
};
示例9: qgs_write_colorramps
static int qgs_write_colorramps(xmlTextWriter *writer, qgs_t *qgs)
{
if (xmlTextWriterStartElement(writer, BAD_CAST "colorramps") < 0 )
{
btrace("error from open colorramps");
return 1;
}
if (qgs_write_colorramp(writer, qgs) != 0)
{
btrace("failed to write colorramp");
return 1;
}
if (xmlTextWriterEndElement(writer) < 0)
{
btrace("error from close colorramps");
return 1;
}
return 0;
}
示例10: axis2_libxml2_writer_wrapper_write_start_element
axis2_status_t AXIS2_CALL
axis2_libxml2_writer_wrapper_write_start_element(
axiom_xml_writer_t * writer,
const axutil_env_t * env,
axis2_char_t * localname)
{
int status = 0;
axis2_libxml2_writer_wrapper_impl_t *writer_impl = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, localname, AXIS2_FAILURE);
writer_impl = AXIS2_INTF_TO_IMPL(writer);
writer_impl->in_start_element = AXIS2_TRUE;
status = xmlTextWriterStartElement(writer_impl->xml_writer, (xmlChar *)localname);
if(status < 0)
{
AXIS2_HANDLE_ERROR(env, AXIS2_ERROR_WRITING_START_ELEMENT, AXIS2_FAILURE);
return AXIS2_FAILURE;
}
return AXIS2_SUCCESS;
}
示例11: exportVirtualBoxMachines
/**
* Export VirtualBox machines
*/
void exportVirtualBoxMachines(IVirtualBox *virtualBox, xmlTextWriterPtr writer) {
IMachine **machines = NULL;
PRUint32 machinesCount = 0;
nsresult rc = virtualBox->GetMachines(&machinesCount, &machines);
if (NS_SUCCEEDED(rc)) {
xmlTextWriterStartElement(writer, TOXMLCHAR("machines"));
for (PRUint32 i = 0; i < machinesCount; i++) {
PRBool accessible = PR_FALSE;
rc = machines[i]->GetAccessible(&accessible);
if (NS_SUCCEEDED(rc) && accessible) {
exportVirtualBoxMachine(virtualBox, machines[i], writer);
}
}
xmlTextWriterEndElement(writer);
NS_FREE_XPCOM_ISUPPORTS_POINTER_ARRAY(machinesCount, machines);
}
}
示例12: xmlTextWriterStartElement
void CrdPlnrFil::StatShr::writeXML(
pthread_mutex_t* mScr
, map<ubigint,string>& scr
, map<string,ubigint>& descr
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "StatShrPlnrFil";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StatitemShrPlnrFil";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeStringAttr(wr, itemtag, "sref", "scrJrefDlgdldcpy", Scr::scramble(mScr, scr, descr, jrefDlgdldcpy));
writeStringAttr(wr, itemtag, "sref", "scrJrefHeadbar", Scr::scramble(mScr, scr, descr, jrefHeadbar));
writeStringAttr(wr, itemtag, "sref", "scrJrefList", Scr::scramble(mScr, scr, descr, jrefList));
writeStringAttr(wr, itemtag, "sref", "scrJrefRec", Scr::scramble(mScr, scr, descr, jrefRec));
writeBoolAttr(wr, itemtag, "sref", "MitCrdDcyActive", MitCrdDcyActive);
xmlTextWriterEndElement(wr);
};
示例13: xmlTextWriterStartElement
void PnlPlnrLyrRec::StatApp::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
, const bool initdoneDetail
, const bool initdone1NBlock
, const bool initdone1NReticle
, const bool initdoneMNStructure
) {
if (difftag.length() == 0) difftag = "StatAppPlnrLyrRec";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StatitemAppPlnrLyrRec";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeBoolAttr(wr, itemtag, "sref", "initdoneDetail", initdoneDetail);
writeBoolAttr(wr, itemtag, "sref", "initdone1NBlock", initdone1NBlock);
writeBoolAttr(wr, itemtag, "sref", "initdone1NReticle", initdone1NReticle);
writeBoolAttr(wr, itemtag, "sref", "initdoneMNStructure", initdoneMNStructure);
xmlTextWriterEndElement(wr);
};
示例14: xmlTextWriterStartElement
void PnlPlnrDvcSup1NDevice::Tag::writeXML(
const uint ixPlnrVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagPlnrDvcSup1NDevice";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemPlnrDvcSup1NDevice";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixPlnrVLocale == VecPlnrVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Sub-devices");
writeStringAttr(wr, itemtag, "sref", "TcoRef", "Device");
};
writeStringAttr(wr, itemtag, "sref", "Trs", StrMod::cap(VecPlnrVTag::getTitle(VecPlnrVTag::GOTO, ixPlnrVLocale)) + " ...");
writeStringAttr(wr, itemtag, "sref", "TxtShowing1", VecPlnrVTag::getTitle(VecPlnrVTag::SHOWSHORT, ixPlnrVLocale));
writeStringAttr(wr, itemtag, "sref", "TxtShowing2", VecPlnrVTag::getTitle(VecPlnrVTag::EMPSHORT, ixPlnrVLocale));
xmlTextWriterEndElement(wr);
};
示例15: xmlTextWriterStartElement
void PnlPlnrTpoDetail::ContIac::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "ContIacPlnrTpoDetail";
string itemtag;
if (shorttags) itemtag = "Ci";
else itemtag = "ContitemIacPlnrTpoDetail";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeStringAttr(wr, itemtag, "sref", "TxfTit", TxfTit);
writeUintAttr(wr, itemtag, "sref", "numFPupTyp", numFPupTyp);
writeStringAttr(wr, itemtag, "sref", "TxfMaj", TxfMaj);
writeStringAttr(wr, itemtag, "sref", "TxfSub", TxfSub);
writeUintAttr(wr, itemtag, "sref", "numFPupJ", numFPupJ);
writeUintAttr(wr, itemtag, "sref", "numFPupSte", numFPupSte);
writeBoolAttr(wr, itemtag, "sref", "ChkFli", ChkFli);
writeStringAttr(wr, itemtag, "sref", "TxfCmt", TxfCmt);
xmlTextWriterEndElement(wr);
};