本文整理汇总了C++中xmlTextWriterEndElement函数的典型用法代码示例。如果您正苦于以下问题:C++ xmlTextWriterEndElement函数的具体用法?C++ xmlTextWriterEndElement怎么用?C++ xmlTextWriterEndElement使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xmlTextWriterEndElement函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xmlTextWriterStartElement
void CrdFmncOrg::ContInf::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "ContInfFmncOrg";
string itemtag;
if (shorttags) itemtag = "Ci";
else itemtag = "ContitemInfFmncOrg";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeUintAttr(wr, itemtag, "sref", "numFSge", numFSge);
writeStringAttr(wr, itemtag, "sref", "MrlAppHlp", MrlAppHlp);
writeStringAttr(wr, itemtag, "sref", "MtxCrdOrg", MtxCrdOrg);
xmlTextWriterEndElement(wr);
};
示例2: xmlTextWriterStartElement
void QryFmncTolRlv1NStep::StatShr::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "StatShrQryFmncTolRlv1NStep";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StatitemShrQryFmncTolRlv1NStep";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeUintAttr(wr, itemtag, "sref", "ntot", ntot);
writeUintAttr(wr, itemtag, "sref", "jnumFirstload", jnumFirstload);
writeUintAttr(wr, itemtag, "sref", "nload", nload);
xmlTextWriterEndElement(wr);
};
示例3: xmlTextWriterStartElement
void PnlPlnrCtpKEnvKey::StgIac::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "StgIacPlnrCtpKEnvKey";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StgitemIacPlnrCtpKEnvKey";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeUintAttr(wr, itemtag, "sref", "TcoSrfWidth", TcoSrfWidth);
writeUintAttr(wr, itemtag, "sref", "TcoTitWidth", TcoTitWidth);
writeUintAttr(wr, itemtag, "sref", "TcoCmtWidth", TcoCmtWidth);
xmlTextWriterEndElement(wr);
};
示例4: xmlTextWriterStartElement
void PnlFmncTolMNFabuser::StgIac::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "StgIacFmncTolMNFabuser";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StgitemIacFmncTolMNFabuser";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeUintAttr(wr, itemtag, "sref", "TcoMrefWidth", TcoMrefWidth);
writeUintAttr(wr, itemtag, "sref", "TcoTrnWidth", TcoTrnWidth);
writeUintAttr(wr, itemtag, "sref", "TcoLvlWidth", TcoLvlWidth);
xmlTextWriterEndElement(wr);
};
示例5: xmlBufferCreate
char *gen_lote_evento_xml(LOTE_EVENTO *lote, EVP_PKEY *key, X509 *cert){
int rc;
xmlTextWriterPtr writer;
xmlDocPtr doc;
xmlBufferPtr buf = xmlBufferCreate();
writer = xmlNewTextWriterDoc(&doc, 0);
if (writer == NULL)
return NULL;
xmlTextWriterStartDocument(writer, NULL, "UTF-8", NULL);
rc = xmlTextWriterStartElement(writer, BAD_CAST "envEvento");
if (rc < 0)
return NULL;
rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xmlns",
BAD_CAST "http://www.portalfiscal.inf.br/nfe");
if (rc < 0)
return NULL;
rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "versao",
BAD_CAST "1.00");
if (rc < 0)
return NULL;
rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "idLote",
"%d", lote->id);
if (rc < 0)
return NULL;
int i;
LOTE_EVENTO_ITEM *it = lote->eventos;
for (i = 0; i < lote->qtd; i++){
char *xml;
xml = generate_evento_xml(it->evento, key, cert);
rc = xmlTextWriterWriteRaw(writer, BAD_CAST xml);
if (rc < 0)
return NULL;
rc = xmlTextWriterEndElement(writer);
if (rc < 0)
return NULL;
it = it->next;
}
xmlTextWriterEndDocument(writer);
xmlNodeDump(buf, NULL, xmlDocGetRootElement(doc), 0, 0);
return (char*)buf->content;
}
示例6: xmlTextWriterStartElement
void QryPlnrDtpKParKey::StgIac::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "StgIacQryPlnrDtpKParKey";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StgitemIacQryPlnrDtpKParKey";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeUintAttr(wr, itemtag, "sref", "jnum", jnum);
writeUintAttr(wr, itemtag, "sref", "jnumFirstload", jnumFirstload);
writeUintAttr(wr, itemtag, "sref", "nload", nload);
xmlTextWriterEndElement(wr);
};
示例7: xmlTextWriterStartElement
void FmncQSmpMNRun::writeXML(
xmlTextWriter* wr
, string difftag
, bool jnumattr
, bool shorttags
) {
if (difftag.length() == 0) difftag = "FmncQSmpMNRun";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (jnumattr) xmlTextWriterWriteAttribute(wr, BAD_CAST "jnum", BAD_CAST to_string(jnum).c_str());
if (shorttags) {
writeString(wr, "mref", stubMref);
} else {
writeString(wr, "stubMref", stubMref);
};
xmlTextWriterEndElement(wr);
};
示例8: xmlTextWriterStartElement
void PnlFmncRunDetail::StatShr::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "StatShrFmncRunDetail";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StatitemShrFmncRunDetail";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeBoolAttr(wr, itemtag, "sref", "ButSaveAvail", ButSaveAvail);
writeBoolAttr(wr, itemtag, "sref", "ButSaveActive", ButSaveActive);
writeBoolAttr(wr, itemtag, "sref", "ButPrjViewAvail", ButPrjViewAvail);
writeBoolAttr(wr, itemtag, "sref", "ButJEditAvail", ButJEditAvail);
xmlTextWriterEndElement(wr);
};
示例9: xmlTextWriterStartElement
void PnlPlnrFilRec::StatApp::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
, const bool initdoneDetail
, const bool initdoneMNCalc
) {
if (difftag.length() == 0) difftag = "StatAppPlnrFilRec";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StatitemAppPlnrFilRec";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeBoolAttr(wr, itemtag, "sref", "initdoneDetail", initdoneDetail);
writeBoolAttr(wr, itemtag, "sref", "initdoneMNCalc", initdoneMNCalc);
xmlTextWriterEndElement(wr);
};
示例10: xmlTextWriterStartElement
void PnlPlnrNavLayout::ContIac::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "ContIacPlnrNavLayout";
string itemtag;
if (shorttags) itemtag = "Ci";
else itemtag = "ContitemIacPlnrNavLayout";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeUintAttr(wr, itemtag, "sref", "numFLstTpo", numFLstTpo);
writeUintAttr(wr, itemtag, "sref", "numFLstArr", numFLstArr);
writeUintAttr(wr, itemtag, "sref", "numFLstAri", numFLstAri);
writeUintAttr(wr, itemtag, "sref", "numFLstRtc", numFLstRtc);
xmlTextWriterEndElement(wr);
};
示例11: xmlTextWriterStartElement
void PnlPlnrCtpKCalcvar::StatShr::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "StatShrPlnrCtpKCalcvar";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StatitemShrPlnrCtpKCalcvar";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeBoolAttr(wr, itemtag, "sref", "ButUpActive", ButUpActive);
writeBoolAttr(wr, itemtag, "sref", "ButDownActive", ButDownActive);
writeBoolAttr(wr, itemtag, "sref", "ButDuplicateActive", ButDuplicateActive);
writeBoolAttr(wr, itemtag, "sref", "ButDeleteActive", ButDeleteActive);
xmlTextWriterEndElement(wr);
};
示例12: xmlTextWriterStartElement
void PnlFmncSmpDetail::ContIac::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "ContIacFmncSmpDetail";
string itemtag;
if (shorttags) itemtag = "Ci";
else itemtag = "ContitemIacFmncSmpDetail";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeStringAttr(wr, itemtag, "sref", "TxfMat", TxfMat);
writeUintAttr(wr, itemtag, "sref", "numFPupJ", numFPupJ);
writeUintAttr(wr, itemtag, "sref", "numFPupSte", numFPupSte);
writeStringAttr(wr, itemtag, "sref", "TxfCmt", TxfCmt);
xmlTextWriterEndElement(wr);
};
示例13: xmlTextWriterStartElement
void PnlPlnrRtcList::ContInf::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "ContInfPlnrRtcList";
string itemtag;
if (shorttags) itemtag = "Ci";
else itemtag = "ContitemInfPlnrRtcList";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeStringAttr(wr, itemtag, "sref", "TxtFor", TxtFor);
writeStringAttr(wr, itemtag, "sref", "TxtPre", TxtPre);
writeBoolAttr(wr, itemtag, "sref", "ButFilterOn", ButFilterOn);
writeUintAttr(wr, itemtag, "sref", "numFCsiQst", numFCsiQst);
xmlTextWriterEndElement(wr);
};
示例14: xmlTextWriterStartElement
void DlgFmncSmpNew::ContIac::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "ContIacDlgFmncSmpNew";
string itemtag;
if (shorttags) itemtag = "Ci";
else itemtag = "ContitemIacDlgFmncSmpNew";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeUintAttr(wr, itemtag, "sref", "numFDetPupSup", numFDetPupSup);
writeStringAttr(wr, itemtag, "sref", "DetTxfSrf", DetTxfSrf);
writeUintAttr(wr, itemtag, "sref", "numFDetPupArt", numFDetPupArt);
writeStringAttr(wr, itemtag, "sref", "DetTxfMat", DetTxfMat);
xmlTextWriterEndElement(wr);
};
示例15: writeDNASequence
static void writeDNASequence(DNASequence* seq) {
if (!seq)
return;
xmlTextWriterStartElement(WRITER, xmlCharStrdup(NSPREFIX_SBOL ":" NODENAME_DNASEQUENCE));
xmlTextWriterWriteAttribute(WRITER, xmlCharStrdup(NSPREFIX_RDF ":" NODENAME_ABOUT), xmlCharStrdup(getDNASequenceURI(seq)));
// nucleotides
if (!alreadyProcessed((void *)seq)) {
char* nt = getDNASequenceNucleotides(seq);
if (nt) {
xmlTextWriterWriteElement(WRITER, xmlCharStrdup(NSPREFIX_SBOL ":" NODENAME_NUCLEOTIDES), xmlCharStrdup(nt));
markProcessed((void *)seq);
}
free(nt);
}
xmlTextWriterEndElement(WRITER);
}