2 instantiations of XmlParser
System.Speech (2)
Internal\SrgsCompiler\SRGSCompiler.cs (1)
56ISrgsParser srgsParser = new XmlParser(xmlReaders[iReader], uri);
Recognition\SrgsGrammar\SrgsDocument.cs (1)
307XmlParser srgsParser = new(srgsGrammar, null);
102 references to XmlParser
System.Speech (102)
Internal\GrammarBuilding\GrammarBuilderPhrase.cs (1)
112XmlParser.ParseText(parent, _phrase, null, null, -1f, new CreateTokenCallback(elementFactory.CreateToken));
Internal\SrgsCompiler\BackEnd.cs (5)
404XmlParser.ThrowSrgsException(SRID.UnsupportedFormat); 587XmlParser.ThrowSrgsException(SRID.DynamicRuleNotFound, ruleName); 600XmlParser.ThrowSrgsException(SRID.DynamicRuleNotFound, ruleName); 688XmlParser.ThrowSrgsException(SRID.RootRuleAlreadyDefined); 1001XmlParser.ThrowSrgsException(SRID.StateWithNoArcs);
Internal\SrgsCompiler\CfgArc.cs (2)
127XmlParser.ThrowSrgsException(SRID.TooManyArcs); 158XmlParser.ThrowSrgsException(SRID.TooManyArcs);
Internal\SrgsCompiler\CFGGrammar.cs (6)
83XmlParser.ThrowSrgsException(SRID.UnsupportedFormat); 90XmlParser.ThrowSrgsException(SRID.UnsupportedFormat); 103XmlParser.ThrowSrgsException(SRID.UnsupportedFormat); 403XmlParser.ThrowSrgsException(SRID.UnsupportedFormat); 465XmlParser.ThrowSrgsException(SRID.UnsupportedFormat); 494XmlParser.ThrowSrgsException(SRID.UnsupportedFormat);
Internal\SrgsCompiler\CfgRule.cs (1)
179XmlParser.ThrowSrgsException(SRID.TooManyArcs);
Internal\SrgsCompiler\CfgSemanticTag.cs (4)
97XmlParser.ThrowSrgsException(SRID.TooManyArcs); 115XmlParser.ThrowSrgsException(SRID.TooManyArcs); 136XmlParser.ThrowSrgsException(SRID.TooManyArcs); 155XmlParser.ThrowSrgsException(SRID.TooManyArcs);
Internal\SrgsCompiler\CustomGrammar.cs (3)
42XmlParser.ThrowSrgsException(SRID.IncompatibleLanguageProperties); 54XmlParser.ThrowSrgsException(SRID.IncompatibleNamespaceProperties); 91XmlParser.ThrowSrgsException(SRID.RuleDefinedMultipleTimes2, rule.Name);
Internal\SrgsCompiler\GrammarElement.cs (4)
84XmlParser.ThrowSrgsException(SRID.RootNotDefined, _sRoot); 91XmlParser.ThrowSrgsException(SRID.UndefRuleRef, rule.Name); 98XmlParser.ThrowSrgsException(SRID.InvalidSemanticProcessingType); 342XmlParser.ThrowSrgsException(SRID.RuleRedefinition, sRuleId); // "Redefinition of rule ""%s""."
Internal\SrgsCompiler\Item.cs (1)
38XmlParser.ThrowSrgsException((SRID.InvalidTagInAnEmptyItem));
Internal\SrgsCompiler\OneOf.cs (1)
49XmlParser.ThrowSrgsException(SRID.EmptyOneOf);
Internal\SrgsCompiler\Rule.cs (2)
100XmlParser.ThrowSrgsException(SRID.EmptyRule); 112XmlParser.ThrowSrgsException((SRID.MaxTransitionsCount));
Internal\SrgsCompiler\SRGSCompiler.cs (1)
153XmlParser.ThrowSrgsException(SRID.NoScriptsForRules);
Internal\SrgsCompiler\State.cs (2)
194XmlParser.ThrowSrgsException(SRID.MaxTransitionsCount); 245XmlParser.ThrowSrgsException(SRID.CircularRuleRef, _rule != null ? _rule._rule.Name : string.Empty);
Internal\SrgsParser\SrgsDocumentParser.cs (5)
223XmlParser.ParseText(parent, sChars, pronunciation, display, reqConfidence, new CreateTokenCallback(_parser.CreateToken)); 342XmlParser.ThrowSrgsException(SRID.InvalidElement); 351XmlParser.ThrowSrgsException(SRID.InvalidElement); 363XmlParser.ThrowSrgsException(SRID.InvalidElement); 380XmlParser.ThrowSrgsException(SRID.InvalidElement);
Internal\SrgsParser\XmlParser.cs (16)
151XmlParser.ThrowSrgsException(SRID.InvalidQuotedString); 158XmlParser.ThrowSrgsException(SRID.InvalidQuotedString); 175XmlParser.ThrowSrgsException(SRID.InvalidTokenString); 614XmlParser.ThrowSrgsException(SRID.OnInitOnPublicRule, "OnInit", id); 619XmlParser.ThrowSrgsException(SRID.OnInitOnPublicRule, "OnRecognition", id); 951XmlParser.ThrowSrgsException(SRID.EmptyPronunciationString); 956XmlParser.ThrowSrgsException(SRID.MuliplePronunciationString); 970XmlParser.ThrowSrgsException(SRID.EmptyDisplayString); 975XmlParser.ThrowSrgsException(SRID.MultipleDisplayString); 1706XmlParser.ThrowSrgsException(SRID.IncorrectAttributeValue, name, sTag.Substring(iEqual)); 1746XmlParser.ThrowSrgsException(SRID.InvalidNameValueProperty, name, sValue); 1774XmlParser.ThrowSrgsException(SRID.MinMaxOutOfRange, minmax, minmax); 1792XmlParser.ThrowSrgsException(SRID.MinMaxOutOfRange, minRepeat, maxRepeat); 1822XmlParser.ThrowSrgsException(SRID.InvalidAttributeDefinedTwice, reader.Value, attribute); 1834XmlParser.ThrowSrgsException(SRID.InvalidRuleId, id); 1869XmlParser.ThrowSrgsException(SRID.RuleAttributeDefinedMultipleTimes, rule);
Recognition\SrgsGrammar\SrgsDocument.cs (1)
307XmlParser srgsParser = new(srgsGrammar, null);
Recognition\SrgsGrammar\SrgsGrammar.cs (20)
44writer.WriteStartElement("grammar", XmlParser.srgsNamespace); 103writer.WriteAttributeString("sapi", "alphabet", XmlParser.sapiNamespace, alphabet); 113writer.WriteAttributeString("xmlns", XmlParser.srgsNamespace); 117writer.WriteAttributeString("xmlns", "sapi", null, XmlParser.sapiNamespace); 169XmlParser.ThrowSrgsException(SRID.RootNotDefined, _root.Id); 189XmlParser.ThrowSrgsException(SRID.InvalidSemanticProcessingType); 223XmlParser.ThrowSrgsException(SRID.RootNotDefined, _sRoot); 228foreach (XmlParser.ForwardReference script in _scriptsForwardReference) 237XmlParser.ThrowSrgsException(SRID.InvalidScriptDefinition); 255_scriptsForwardReference.Add(new XmlParser.ForwardReference(rule, code)); 559writer.WriteAttributeString("sapi", "language", XmlParser.sapiNamespace, _language); 565writer.WriteAttributeString("sapi", "namespace", XmlParser.sapiNamespace, _namespace); 573writer.WriteAttributeString("sapi", "codebehind", XmlParser.sapiNamespace, sFile); 580writer.WriteAttributeString("sapi", "debug", XmlParser.sapiNamespace, "True"); 592writer.WriteStartElement("sapi", "assemblyReference", XmlParser.sapiNamespace); 593writer.WriteAttributeString("sapi", "assembly", XmlParser.sapiNamespace, sAssembly); 602writer.WriteStartElement("sapi", "importNamespace", XmlParser.sapiNamespace); 603writer.WriteAttributeString("sapi", "namespace", XmlParser.sapiNamespace, sNamespace); 633writer.WriteStartElement("sapi", "script", XmlParser.sapiNamespace); 686private List<XmlParser.ForwardReference> _scriptsForwardReference = new();
Recognition\SrgsGrammar\SrgsNameValueTag.cs (1)
122XmlParser.ThrowSrgsException(SRID.SapiPropertiesAndSemantics);
Recognition\SrgsGrammar\SrgsRule.cs (16)
25XmlParser.ValidateRuleId(id); 33XmlParser.ValidateRuleId(id); 76XmlParser.ValidateRuleId(value); 200XmlParser.ThrowSrgsException(SRID.InvalidEmptyRule, "rule", _id); 222writer.WriteAttributeString("sapi", "baseclass", XmlParser.sapiNamespace, _baseclass); 227writer.WriteAttributeString("sapi", "dynamic", XmlParser.sapiNamespace, _dynamic == RuleDynamic.True ? "true" : "false"); 233writer.WriteAttributeString("sapi", "onInit", XmlParser.sapiNamespace, OnInit); 239writer.WriteAttributeString("sapi", "onParse", XmlParser.sapiNamespace, OnParse); 245writer.WriteAttributeString("sapi", "onError", XmlParser.sapiNamespace, OnError); 251writer.WriteAttributeString("sapi", "onRecognition", XmlParser.sapiNamespace, OnRecognition); 298XmlParser.ThrowSrgsException(SRID.OnInitOnPublicRule, "OnInit", Id); 303XmlParser.ThrowSrgsException(SRID.OnInitOnPublicRule, "OnRecognition", Id); 373writer.WriteStartElement("sapi", "script", XmlParser.sapiNamespace); 374writer.WriteAttributeString("sapi", "rule", XmlParser.sapiNamespace, _id); 385XmlParser.ThrowSrgsException(SRID.ConstructorNotAllowed, _id); 390XmlParser.ThrowSrgsException(SRID.InvalidMethodName);
Recognition\SrgsGrammar\SrgsRuleRef.cs (4)
153XmlParser.ThrowSrgsException(SRID.InvalidSpecialRuleRef); 163writer.WriteAttributeString("sapi", "semantic-key", XmlParser.sapiNamespace, _semanticKey); 169writer.WriteAttributeString("sapi", "params", XmlParser.sapiNamespace, _params); 210XmlParser.ThrowSrgsException(SRID.UndefRuleRef, sUri);
Recognition\SrgsGrammar\SrgsSemanticInterpretationTag.cs (1)
61XmlParser.ThrowSrgsException(SRID.SapiPropertiesAndSemantics);
Recognition\SrgsGrammar\SrgsSubset.cs (2)
78writer.WriteStartElement("sapi", "subset", XmlParser.sapiNamespace); 102writer.WriteAttributeString("sapi", "match", XmlParser.sapiNamespace, sMatchMode);
Recognition\SrgsGrammar\SrgsText.cs (1)
41XmlParser.ParseText(null!, value, null, null, -1f, null);
Recognition\SrgsGrammar\SrgsToken.cs (2)
88writer.WriteAttributeString("sapi", "display", XmlParser.sapiNamespace, _display); 93writer.WriteAttributeString("sapi", "pron", XmlParser.sapiNamespace, _pronunciation);