コード例 #1
0
ファイル: dtdvalidator.cs プロジェクト: Potapy4/dotnet-wcf
 private void Push(XmlQualifiedName elementName)
 {
     context = (ValidationState)_validationStack.Push();
     if (context == null)
     {
         context = new ValidationState();
         _validationStack.AddToTop(context);
     }
     context.LocalName            = elementName.Name;
     context.Namespace            = elementName.Namespace;
     context.HasMatched           = false;
     context.IsNill               = false;
     context.NeedValidateChildren = false;
 }
コード例 #2
0
 private void Push(XmlQualifiedName elementName)
 {
     context = (ValidationState)_validationStack.Push();
     if (context == null)
     {
         context = new ValidationState();
         _validationStack.AddToTop(context);
     }
     context.LocalName            = elementName.Name;
     context.Namespace            = elementName.Namespace;
     context.HasMatched           = false;
     context.IsNill               = false;
     context.ProcessContents      = _processContents;
     context.NeedValidateChildren = false;
     context.Constr               = null; //resetting the constraints to be null incase context != null
                                          // when pushing onto stack;
 }