Esempio n. 1
0
        private void LoadStreamInput(Stream stream)
        {
            XmlDocument doc = new XmlDocument();

            doc.PreserveWhitespace = true;
            doc.Load(stream);
            _inputNodeList = CanonicalXml.AllDescendantNodes(doc, true);
        }
Esempio n. 2
0
 /// <include file='doc\Transform.uex' path='docs/doc[@for="XmlDsigEnvelopedSignatureTransform.GetOutput1"]/*' />
 public override Object GetOutput(Type type)
 {
     if (type == typeof(XmlNodeList) || type.IsSubclassOf(typeof(XmlNodeList)))
     {
         if (_inputNodeList == null)
         {
             _inputNodeList = CanonicalXml.AllDescendantNodes(_containingDocument, true);
         }
         return((XmlNodeList)GetOutput());
     }
     else if (type == typeof(XmlDocument) || type.IsSubclassOf(typeof(XmlDocument)))
     {
         if (_inputNodeList != null)
         {
             throw new ArgumentException("type");
         }
         return((XmlDocument)GetOutput());
     }
     else
     {
         throw new ArgumentException("type");
     }
 }
Esempio n. 3
0
 private void LoadXmlDocumentInput(XmlDocument doc)
 {
     _inputNodeList = CanonicalXml.AllDescendantNodes(doc, true);
 }