An instance of the InstanceInitialiser class is used to initialise new schema based XmlDocument instances.
예제 #1
0
 /// <summary>
 /// Constructs a <b>SchemaRelease</b> instance describing a schema
 /// based release of a particular <see cref="Specification"/>.
 /// </summary>
 /// <remarks>This constructor should be used when creating a description of a
 /// pure extension schema, i.e. one that contains no useable root elements.</remarks>
 /// <param name="specification">The owning <see cref="Specification"/>.</param>
 /// <param name="version">The version identifier for this release.</param>
 /// <param name="namespaceUri">The namespace used to identify the schema.</param>
 /// <param name="schemaLocation">The default schema location.</param>
 /// <param name="preferredPrefix">The preferred prefix for the namespace.</param>
 /// <param name="alternatePrefix">The alternate prefix for the namespace.</param>
 /// <param name="initialiser">The <see cref="InstanceInitialiser"/>.</param>
 /// <param name="recogniser">The <see cref="SchemaRecogniser"/>.</param>
 public SchemaRelease(Specification specification, string version,
                      string namespaceUri, string schemaLocation,
                      string preferredPrefix, string alternatePrefix,
                      InstanceInitialiser initialiser, SchemaRecogniser recogniser)
     : this(specification, version, namespaceUri, schemaLocation,
            preferredPrefix, alternatePrefix,
            initialiser, recogniser, (string [])null)
 {
 }
예제 #2
0
        /// <summary>
        /// Constructs a <b>SchemaRelease</b> instance describing a schema
        /// based release of a particular <see cref="Specification"/>.
        /// </summary>
        /// <remarks>This constructor should be used when creating a description of a
        /// schema that has multiple root elements.</remarks>
        /// <param name="specification">The owning <see cref="Specification"/>.</param>
        /// <param name="version">The version identifier for this release.</param>
        /// <param name="namespaceUri">The namespace used to identify the schema.</param>
        /// <param name="schemaLocation">The default schema location.</param>
        /// <param name="preferredPrefix">The preferred prefix for the namespace.</param>
        /// <param name="alternatePrefix">The alternate prefix for the namespace.</param>
        /// <param name="initialiser">The <see cref="InstanceInitialiser"/>.</param>
        /// <param name="recogniser">The <see cref="SchemaRecogniser"/>.</param>
        /// <param name="rootElements">The set of possible root elements.</param>
        public SchemaRelease(Specification specification, string version,
                             string namespaceUri, string schemaLocation,
                             string preferredPrefix, string alternatePrefix,
                             InstanceInitialiser initialiser, SchemaRecogniser recogniser,
                             string [] rootElements)
            : base(specification, version, rootElements)
        {
            this.namespaceUri    = namespaceUri;
            this.schemaLocation  = schemaLocation;
            this.preferredPrefix = preferredPrefix;
            this.alternatePrefix = alternatePrefix;

            this.initialiser = initialiser;
            this.recogniser  = recogniser;
        }
        /// <summary>
        /// Constructs a <b>SchemaRelease</b> instance describing a schema
        /// based release of a particular <see cref="Specification"/>.
        /// </summary>
        /// <remarks>This constructor should be used when creating a description of a
        /// schema that has multiple root elements.</remarks>
        /// <param name="specification">The owning <see cref="Specification"/>.</param>
        /// <param name="version">The version identifier for this release.</param>
        /// <param name="namespaceUri">The namespace used to identify the schema.</param>
        /// <param name="schemaLocation">The default schema location.</param>
        /// <param name="preferredPrefix">The preferred prefix for the namespace.</param>
        /// <param name="alternatePrefix">The alternate prefix for the namespace.</param>
        /// <param name="initialiser">The <see cref="InstanceInitialiser"/>.</param>
        /// <param name="recogniser">The <see cref="SchemaRecogniser"/>.</param>
        /// <param name="rootElements">The set of possible root elements.</param>
        public SchemaRelease(Specification specification, string version,
            string namespaceUri, string schemaLocation,
            string preferredPrefix, string alternatePrefix,
            InstanceInitialiser initialiser, SchemaRecogniser recogniser,
            string [] rootElements)
            : base(specification, version, rootElements)
        {
            this.namespaceUri    = namespaceUri;
            this.schemaLocation  = schemaLocation;
            this.preferredPrefix = preferredPrefix;
            this.alternatePrefix = alternatePrefix;

            this.initialiser	= initialiser;
            this.recogniser		= recogniser;
        }
        /// <summary>
        /// Constructs a <b>SchemaRelease</b> instance describing a schema
        /// based release of a particular <see cref="Specification"/>.
        /// </summary>
        /// <remarks>This constructor should be used when creating a description
        /// of a schema that has only a single root element.</remarks>
        /// <param name="specification">The owning <see cref="Specification"/>.</param>
        /// <param name="version">The version identifier for this release.</param>
        /// <param name="namespaceUri">The namespace used to identify the schema.</param>
        /// <param name="schemaLocation">The default schema location.</param>
        /// <param name="preferredPrefix">The preferred prefix for the namespace.</param>
        /// <param name="alternatePrefix">The alternate prefix for the namespace.</param>
        /// <param name="initialiser">The <see cref="InstanceInitialiser"/>.</param>
        /// <param name="recogniser">The <see cref="SchemaRecogniser"/>.</param>
        /// <param name="rootElement">The normal root element.</param>
        public SchemaRelease(Specification specification, string version,
            string namespaceUri, string schemaLocation,
            string preferredPrefix, string alternatePrefix,
            InstanceInitialiser initialiser, SchemaRecogniser recogniser,
            string rootElement)
            : this(specification, version, namespaceUri, schemaLocation,
					preferredPrefix, alternatePrefix, initialiser, recogniser,
					new string [] { rootElement })
        {
        }