| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- //
- // System.Xml.XPath.XPathDocument
- //
- // Author:
- // Tim Coleman ([email protected])
- //
- // (C) Copyright 2002 Tim Coleman
- //
- using System.IO;
- using System.Xml;
- namespace System.Xml.XPath
- {
- [MonoTODO]
- public class XPathDocument : IXPathNavigable
- {
- XmlDocument _doc = new XmlDocument ();
- #region Constructors
- public XPathDocument (Stream stream)
- {
- _doc.Load (stream);
- }
- public XPathDocument (string uri)
- {
- _doc.Load (uri);
- }
- public XPathDocument (TextReader reader)
- {
- _doc.Load (reader);
- }
- public XPathDocument (XmlReader reader)
- {
- _doc.Load (reader);
- }
- public XPathDocument (string uri, XmlSpace space)
- {
- if (space == XmlSpace.Preserve)
- _doc.PreserveWhitespace = true;
- _doc.Load (uri);
- }
- public XPathDocument (XmlReader reader, XmlSpace space)
- {
- if (space == XmlSpace.Preserve)
- _doc.PreserveWhitespace = true;
- _doc.Load (reader);
- }
- #endregion
- #region Methods
- public XPathNavigator CreateNavigator ()
- {
- return _doc.CreateNavigator ();
- }
- #endregion
- }
- }
|