internal protected static OrmObjectsDef LoadXmlDocument(XmlDocument document, bool skipValidation) { OrmXmlParser parser; if (skipValidation) { parser = new OrmXmlParser(document); } else { using (MemoryStream ms = new MemoryStream()) { using (XmlWriter xwr = XmlWriter.Create(ms)) { document.WriteTo(xwr); } ms.Position = 0; using (XmlReader xrd = XmlReader.Create(ms)) { parser = new OrmXmlParser(xrd, null); parser.Read(); } } } parser.FillObjectsDef(); return(parser._ormObjectsDef); }
public static OrmObjectsDef LoadFromXml(XmlReader reader, XmlResolver xmlResolver) { OrmObjectsDef odef = OrmXmlParser.Parse(reader, xmlResolver); odef.CreateSystemComments(); return(odef); }
internal protected static OrmObjectsDef Parse(XmlReader reader, XmlResolver xmlResolver) { OrmXmlParser parser; parser = new OrmXmlParser(reader, xmlResolver); parser.Read(); parser.FillObjectsDef(); return(parser._ormObjectsDef); }