| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- //
- // XPathDocument2.cs
- //
- // Author:
- // Atsushi Enomoto <[email protected]>
- //
- // (C)2003 Atsushi Enomoto
- //
- #if NET_1_2
- using System;
- using System.Collections;
- using System.IO;
- using System.Xml.Schema;
- namespace System.Xml
- {
- public class XPathDocument2
- {
- // XPathDocumentTree tree;
- bool acceptChangesOnLoad;
- XmlNameTable nameTable;
- bool createDefaultDocument;
- public XPathDocument2 () : this (null, false) {}
- public XPathDocument2 (XmlNameTable nameTable) : this (nameTable, false) {}
- public XPathDocument2 (bool createDefaultDocument) : this (null, createDefaultDocument) {}
- // TODO
- public XPathDocument2 (XmlNameTable nameTable, bool createDefaultDocument)
- {
- this.nameTable = nameTable;
- this.createDefaultDocument = createDefaultDocument;
- }
- // internal XPathDocumentTree Tree {
- // get { return tree; }
- // }
- internal void DeleteNode (XPathNavigator2 nav)
- {
- throw new NotImplementedException ();
- }
- public event XPathDocument2ChangedEventHandler ChangeRejected;
- public event XPathDocument2ChangedEventHandler ItemChanged;
- public event XPathDocument2ChangedEventHandler ItemChanging;
- public event XPathDocument2ChangedEventHandler ItemInserted;
- public event XPathDocument2ChangedEventHandler ItemInserting;
- public event XPathDocument2ChangedEventHandler ItemRemoved;
- public event XPathDocument2ChangedEventHandler ItemRemoving;
- public event XPathDocument2ChangedEventHandler RejectingChange;
- public bool AcceptChangesOnLoad {
- get { return acceptChangesOnLoad; }
- set { acceptChangesOnLoad = value; }
- }
- public bool DefaultRoot {
- get { throw new NotImplementedException (); }
- }
- public XmlNameTable NameTable {
- get { return nameTable; }
- }
- public void AcceptChanges ()
- {
- throw new NotImplementedException ();
- }
- public bool CheckValidity (XmlSchemaSet schemas, ValidationEventHandler validationEventHandler)
- {
- throw new NotImplementedException ();
- }
- public XPathChangeNavigator CreateXPathChangeNavigator ()
- {
- throw new NotImplementedException ();
- }
- public XPathEditor CreateXPathEditor ()
- {
- // return new XPathDocumentEditor (this);
- throw new NotImplementedException ();
- }
- public XPathNavigator2 CreateXPathNavigator2 ()
- {
- // return new XPathDocumentNavigator2 (this);
- throw new NotImplementedException ();
- }
- public bool HasChanges ()
- {
- throw new NotImplementedException ();
- }
- public bool HasChanges (XmlChangeFilters changeFilter)
- {
- throw new NotImplementedException ();
- }
- public bool IsDeletedFragment (XPathNavigator2 xmlNavigator, bool isPermanent)
- {
- throw new NotImplementedException ();
- }
- public bool IsDeletedFragment (XPathNavigator2 xmlNavigator)
- {
- throw new NotImplementedException ();
- }
- public void Load (string url)
- {
- XmlTextReader xtr = new XmlTextReader (url);
- Load (xtr);
- xtr.Close ();
- }
- public void Load (TextReader reader)
- {
- XmlTextReader xtr = new XmlTextReader (reader);
- Load (xtr);
- }
- public void Load (Stream stream)
- {
- XmlTextReader xtr = new XmlTextReader (stream);
- Load (xtr);
- }
- public void LoadXml (string xml)
- {
- XmlTextReader xtr = new XmlTextReader (xml, XmlNodeType.Document, null);
- Load (xtr);
- xtr.Close ();
- }
- public void Load (XmlReader xmlReader)
- {
- // tree = new XPathDocumentTree (xmlReader);
- if (acceptChangesOnLoad)
- AcceptChanges ();
- }
- public void RejectChanges ()
- {
- throw new NotImplementedException ();
- }
- public void Validate (XmlSchemaSet schemas, ValidationEventHandler validationEventHandler)
- {
- throw new NotImplementedException ();
- }
- }
- public class XPathDocument2ChangedEventArgs : EventArgs
- {
- XPathDocument2ChangedEventAction action;
- internal XPathDocument2ChangedEventArgs (XPathDocument2ChangedEventAction action, XPathNavigator2 nav)
- {
- this.action = action;
- throw new NotImplementedException ();
- }
- public XPathDocument2ChangedEventAction Action {
- get { return action; }
- }
- public XPathNavigator2 Item {
- get { throw new NotImplementedException (); }
- }
- public XPathNavigator2 NewParent {
- get { throw new NotImplementedException (); }
- }
- public XPathNavigator2 NewPreviousItem {
- get { throw new NotImplementedException (); }
- }
- public string NewValue {
- get { throw new NotImplementedException (); }
- }
- public XPathNavigator2 OldParent {
- get { throw new NotImplementedException (); }
- }
- public XPathNavigator2 OldPreviousItem {
- get { throw new NotImplementedException (); }
- }
- public string OldValue {
- get { throw new NotImplementedException (); }
- }
- }
- }
- #endif
|