C# Класс DocumentProvider, simplexml

The DocumentProvider object is used to provide event reader implementations for DOM. Wrapping the mechanics of the DOM framework within a Provider ensures that it can be plugged in without any dependencies. This allows other parsers to be swapped in should there be such a requirement.
Наследование: Provider
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DocumentProvider ( ) : System

Constructor for the DocumentProvider object. This is used to instantiate a parser factory that will be used to create parsers when requested. Instantiating the factory up front also checks that the framework is fully supported.

Provide ( InputSource, source ) : EventReader

This provides an EventReader that will read from the specified source. When reading from a source the character encoding should be the same as the source XML document.

Provide ( InputStream, source ) : EventReader

This provides an EventReader that will read from the specified input stream. When reading from an input stream the character encoding should be taken from the XML prolog or it should default to the UTF-8 character encoding.

Provide ( Reader, source ) : EventReader

This provides an EventReader that will read from the specified reader. When reading from a reader the character encoding should be the same as the source XML document.

Описание методов

DocumentProvider() публичный Метод

Constructor for the DocumentProvider object. This is used to instantiate a parser factory that will be used to create parsers when requested. Instantiating the factory up front also checks that the framework is fully supported.
public DocumentProvider ( ) : System
Результат System

Provide() публичный Метод

This provides an EventReader that will read from the specified source. When reading from a source the character encoding should be the same as the source XML document.
public Provide ( InputSource, source ) : EventReader
source InputSource, /// this is the source to read the document with ///
Результат EventReader

Provide() публичный Метод

This provides an EventReader that will read from the specified input stream. When reading from an input stream the character encoding should be taken from the XML prolog or it should default to the UTF-8 character encoding.
public Provide ( InputStream, source ) : EventReader
source InputStream, /// this is the stream to read the document with ///
Результат EventReader

Provide() публичный Метод

This provides an EventReader that will read from the specified reader. When reading from a reader the character encoding should be the same as the source XML document.
public Provide ( Reader, source ) : EventReader
source Reader, /// this is the reader to read the document with ///
Результат EventReader