예제 #1
0
 public XmlNodeException(string message, XmlNode node)
     : base(message)
 {
     _lineInfo = node as IXmlLineInfo;
     _document = node.OwnerDocument as XmlFileInfoDocument;
 }
예제 #2
0
 public XmlNodeException(Exception innerException, XmlNode node)
     : base(innerException.Message, innerException)
 {
     _lineInfo = node as IXmlLineInfo;
     _document = node.OwnerDocument as XmlFileInfoDocument;
 }
예제 #3
0
 XmlFormatter(XmlFileInfoDocument document)
 => _document = document;
 internal XmlFileInfoAttribute(string prefix, string localName, string namespaceUri, XmlFileInfoDocument document)
     : base(prefix, localName, namespaceUri, document)
 {
     LineNumber   = document.CurrentLineNumber;
     LinePosition = document.CurrentLinePosition;
 }
            internal XmlFileInfoElement(string prefix, string localName, string namespaceUri, XmlFileInfoDocument document)
                : base(prefix, localName, namespaceUri, document)
            {
                LineNumber   = document.CurrentLineNumber;
                LinePosition = document.CurrentLinePosition;
                IsOriginal   = document.FirstLoad;

                if (document.PreservationProvider != null)
                {
                    _preservationDict = document.PreservationProvider.GetDictAtPosition(LineNumber, LinePosition - 1);
                }
                if (_preservationDict == null)
                {
                    _preservationDict = new XmlAttributePreservationDict();
                }
            }
 private XmlFormatter(XmlFileInfoDocument document)
 {
     _document = document;
 }