示例#1
0
        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);
        }
示例#2
0
 public XmlSimpleTypeParser(XDocument document, XmlUnknownTypeParser xmlUnknownTypeParser, EnumerationRestrictionParser enumerationRestrictionParser)
 {
     _document                     = document;
     _xmlUnknownTypeParser         = xmlUnknownTypeParser;
     _enumerationRestrictionParser = enumerationRestrictionParser;
 }