private void SetUpXmlTypeParsers() { var dateTimeParser = new XmlDateTimeParser(_document); XmlTypeParsers.Add(dateTimeParser); var decimalParser = new XmlDecimalParser(_document); XmlTypeParsers.Add(decimalParser); var enumerationRestrictionParser = new EnumerationRestrictionParser(_document); var simpleTypeParser = new XmlSimpleTypeParser(_document, _xmlUnknownTypeParser, enumerationRestrictionParser); XmlTypeParsers.Add(simpleTypeParser); var xmlAttributesParser = new XmlAttributesParser(_document, simpleTypeParser, _xmlUnknownTypeParser); var complexTypeParser = new XmlComplexTypeParser(_document, this, xmlAttributesParser); XmlTypeParsers.Add(complexTypeParser); var simpleContentComplexTypeParser = new XmlSimpleContentComplexTypeParser(_document, xmlAttributesParser, enumerationRestrictionParser); XmlTypeParsers.Add(simpleContentComplexTypeParser); }
public XmlSimpleTypeParser(XDocument document, XmlUnknownTypeParser xmlUnknownTypeParser, EnumerationRestrictionParser enumerationRestrictionParser) { _document = document; _xmlUnknownTypeParser = xmlUnknownTypeParser; _enumerationRestrictionParser = enumerationRestrictionParser; }