public static RelaxngPattern Read (XmlReader xmlReader, RelaxngDatatypeProvider provider, XmlResolver xmlResolver) { RelaxngReader r = new RelaxngReader (xmlReader, null, xmlResolver); if (r.ReadState == ReadState.Initial) r.Read (); r.MoveToContent (); RelaxngPattern p = r.ReadPattern (); p.DataProvider = provider; p.XmlResolver = xmlResolver; return p; }
public override RelaxngDatatype GetDatatype(string name, string ns, IList <RelaxngParam> parameters) { // TODO: parameter support (write schema and get type) RelaxngDatatypeProvider p = table [ns] as RelaxngDatatypeProvider; if (p == null) { return(null); } return(p.GetDatatype(name, ns, parameters)); }
public RelaxngValidatingReader(XmlReader reader, XmlReader grammarXml, RelaxngDatatypeProvider provider) : this(reader, RelaxngGrammar.Read(grammarXml, provider)) { }
public static RelaxngPattern Read (XmlReader xmlReader, RelaxngDatatypeProvider provider) { return Read (xmlReader, provider, new XmlUrlResolver ()); }
public static RelaxngPattern Read(XmlReader xmlReader, RelaxngDatatypeProvider provider) { return(Read(xmlReader, provider, new XmlUrlResolver())); }
public RelaxngValidatingReader (XmlReader reader, XmlReader grammarXml, RelaxngDatatypeProvider provider) : this (reader, RelaxngGrammar.Read (grammarXml, provider)) { }