private void LoadStreamInput(Stream stream) { XmlDocument doc = new XmlDocument(); doc.PreserveWhitespace = true; doc.Load(stream); _inputNodeList = CanonicalXml.AllDescendantNodes(doc, true); }
/// <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"); } }
private void LoadXmlDocumentInput(XmlDocument doc) { _inputNodeList = CanonicalXml.AllDescendantNodes(doc, true); }