public XmlReaderContext(string ns, string pref, XmlFactory factory, bool qualifiedElement, bool qualifiedAttribute) { this._fact = factory; this._ns = ns; this._pref = pref; this._qattr = qualifiedAttribute; this._qele = qualifiedElement; this._params = new DBParamList(); }
public XmlReaderContext(string ns, string pref) : this(ns, pref, XmlFactory.Create()) { }
public XmlReaderContext(string ns, string pref, XmlFactory factory) : this(ns, pref, factory, true, false) { }
/// <summary> /// Inputs the XmlReader and attempts to parse as a valid DbQuery with the /// specified element namespace and prefix /// </summary> /// <param name="reader">The reader to load the DbQuery from</param> /// <param name="ns">The namespace of the DBQuery elements</param> /// <param name="prefix">The prefix</param> /// <param name="factory">An XmlFactory that creates new DBClause instances from their known names</param> /// <returns>The parsed DbQuery</returns> public static DBQuery ReadXml(System.Xml.XmlReader reader, string ns, string prefix, XmlFactory factory) { XmlReaderContext context = new XmlReaderContext(ns, prefix, factory); return(DBQuery.sReadXml(reader, context)); }