本文整理匯總了C#中XmlBooster.XmlBContext.errCount方法的典型用法代碼示例。如果您正苦於以下問題:C# XmlBContext.errCount方法的具體用法?C# XmlBContext.errCount怎麽用?C# XmlBContext.errCount使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類XmlBooster.XmlBContext
的用法示例。
在下文中一共展示了XmlBContext.errCount方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: acceptHistory
/// <summary>Top level function to parse an History from
/// a context. This kind of function is only made
/// available for elements marked as MAIN in the
/// metadefinition</summary>
/// <seealso cref="accept"/>
public static History acceptHistory(XmlBContext ctxt)
{
History res;
ctxt.skipWhiteSpace();
try {
ctxt.acceptString ("<History");
if (ctxt.isAlNum()){
ctxt.fail ("White space expected after TAG");
} // If
res = lAccept_History(ctxt, "</History>");
} catch (XmlBRecoveryException e) {
throw new XmlBException("Unexpected recovery exception: " +
e.ToString());
}
ctxt.close();
if (ctxt.errCount() > 0){
res = null;
throw new XmlBException (ctxt.errorMessage());
} // If
return res;
}
示例2: acceptSourceTextComment
/// <summary>Top level function to parse an SourceTextComment from
/// a context. This kind of function is only made
/// available for elements marked as MAIN in the
/// metadefinition</summary>
/// <seealso cref="accept"/>
public static SourceTextComment acceptSourceTextComment(XmlBContext ctxt)
{
SourceTextComment res;
ctxt.skipWhiteSpace();
try {
ctxt.acceptString ("<SourceTextComment");
if (ctxt.isAlNum()){
ctxt.fail ("White space expected after TAG");
} // If
res = lAccept_SourceTextComment(ctxt, "</SourceTextComment>");
} catch (XmlBRecoveryException e) {
throw new XmlBException("Unexpected recovery exception: " +
e.ToString());
}
ctxt.close();
if (ctxt.errCount() > 0){
res = null;
throw new XmlBException (ctxt.errorMessage());
} // If
return res;
}
示例3: acceptRequirementSetReference
/// <summary>Top level function to parse an RequirementSetReference from
/// a context. This kind of function is only made
/// available for elements marked as MAIN in the
/// metadefinition</summary>
/// <seealso cref="accept"/>
public static RequirementSetReference acceptRequirementSetReference(XmlBContext ctxt)
{
RequirementSetReference res;
ctxt.skipWhiteSpace();
try {
ctxt.acceptString ("<RequirementSetReference");
if (ctxt.isAlNum()){
ctxt.fail ("White space expected after TAG");
} // If
res = lAccept_RequirementSetReference(ctxt, "</RequirementSetReference>");
} catch (XmlBRecoveryException e) {
throw new XmlBException("Unexpected recovery exception: " +
e.ToString());
}
ctxt.close();
if (ctxt.errCount() > 0){
res = null;
throw new XmlBException (ctxt.errorMessage());
} // If
return res;
}
示例4: acceptParagraphRevision
/// <summary>Top level function to parse an ParagraphRevision from
/// a context. This kind of function is only made
/// available for elements marked as MAIN in the
/// metadefinition</summary>
/// <seealso cref="accept"/>
public static ParagraphRevision acceptParagraphRevision(XmlBContext ctxt)
{
ParagraphRevision res;
ctxt.skipWhiteSpace();
try {
ctxt.acceptString ("<ParagraphRevision");
if (ctxt.isAlNum()){
ctxt.fail ("White space expected after TAG");
} // If
res = lAccept_ParagraphRevision(ctxt, "</ParagraphRevision>");
} catch (XmlBRecoveryException e) {
throw new XmlBException("Unexpected recovery exception: " +
e.ToString());
}
ctxt.close();
if (ctxt.errCount() > 0){
res = null;
throw new XmlBException (ctxt.errorMessage());
} // If
return res;
}
示例5: acceptRuleCheckIdentifier
/// <summary>Top level function to parse an RuleCheckIdentifier from
/// a context. This kind of function is only made
/// available for elements marked as MAIN in the
/// metadefinition</summary>
/// <seealso cref="accept"/>
public static RuleCheckIdentifier acceptRuleCheckIdentifier(XmlBContext ctxt)
{
RuleCheckIdentifier res;
ctxt.skipWhiteSpace();
try {
ctxt.acceptString ("<RuleCheckIdentifier");
if (ctxt.isAlNum()){
ctxt.fail ("White space expected after TAG");
} // If
res = lAccept_RuleCheckIdentifier(ctxt, "</RuleCheckIdentifier>");
} catch (XmlBRecoveryException e) {
throw new XmlBException("Unexpected recovery exception: " +
e.ToString());
}
ctxt.close();
if (ctxt.errCount() > 0){
res = null;
throw new XmlBException (ctxt.errorMessage());
} // If
return res;
}