Table of Contents

Interface IXmlParserFactory

Namespace
iText.Kernel.Utils
Assembly
itext.kernel.dll

The interface in which methods for creating xml parsers are declared.

public interface IXmlParserFactory

Methods

CreateXmlReaderInstance(Stream, XmlParserContext)

Creates the instance of System.Xml.XmlReader.

XmlReader CreateXmlReaderInstance(Stream stream, XmlParserContext inputContext)

Parameters

stream Stream

the stream that contains the XML data.

inputContext XmlParserContext

the context information required to parse the XML fragment.

Returns

XmlReader

an object that is used to read the XML data in the stream.

CreateXmlReaderInstance(TextReader)

Creates the instance of System.Xml.XmlReader.

XmlReader CreateXmlReaderInstance(TextReader textReader)

Parameters

textReader TextReader

the text reader from which to read the XML data.

Returns

XmlReader

an object that is used to read the XML data in the stream.