本文整理汇总了C#中XmlBooster.XmlBContext.close方法的典型用法代码示例。如果您正苦于以下问题:C# XmlBContext.close方法的具体用法?C# XmlBContext.close怎么用?C# XmlBContext.close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XmlBooster.XmlBContext
的用法示例。
在下文中一共展示了XmlBContext.close方法的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;
}