ZPT-Sharp  v1.0.0
Zope Page Templates for .NET
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
CSF.Zpt.DocumentProviders.LegacyXmlZptDocumentProvider Class Reference

Implementation of IZptDocumentProvider which creates XML documents based on System.Xml.XmlDocument. More...

Inheritance diagram for CSF.Zpt.DocumentProviders.LegacyXmlZptDocumentProvider:
Collaboration diagram for CSF.Zpt.DocumentProviders.LegacyXmlZptDocumentProvider:

Public Member Functions

IZptDocument CreateDocument (System.Xml.XmlDocument xmlDocument, ISourceInfo sourceInfo)
 Creates a document from an XmlDocument object and information about the source of the document. More...
 
RenderingMode GetRenderingMode ()
 Gets the rendering mode for documents created by this provider. More...
 
IZptDocument CreateDocument (FileInfo sourceFile, Encoding encoding)
 Creates a document from a source file. More...
 
IZptDocument CreateDocument (Stream sourceStream, ISourceInfo sourceInfo, Encoding encoding)
 Creates a document from a stream. More...
 
 LegacyXmlZptDocumentProvider ()
 Initializes a new instance of the CSF.Zpt.DocumentProviders.LegacyXmlZptDocumentProvider class. More...
 

Detailed Description

Implementation of IZptDocumentProvider which creates XML documents based on System.Xml.XmlDocument.

Generally, you don't want to be using this type if System.Xml.Linq is available (which it usually is if you're using .NET framework 4.5 or up).

The XML-Linq implementation is superior to this one in several ways and produces more standards-compliant output also.

Constructor & Destructor Documentation

CSF.Zpt.DocumentProviders.LegacyXmlZptDocumentProvider.LegacyXmlZptDocumentProvider ( )
inline

Initializes a new instance of the CSF.Zpt.DocumentProviders.LegacyXmlZptDocumentProvider class.

Member Function Documentation

IZptDocument CSF.Zpt.DocumentProviders.LegacyXmlZptDocumentProvider.CreateDocument ( System.Xml.XmlDocument  xmlDocument,
ISourceInfo  sourceInfo 
)
inline

Creates a document from an XmlDocument object and information about the source of the document.

Returns
The ZPT document implementation.
Parameters
xmlDocumentAn XML document.
sourceInfoThe source info.
IZptDocument CSF.Zpt.DocumentProviders.LegacyXmlZptDocumentProvider.CreateDocument ( FileInfo  sourceFile,
Encoding  encoding 
)
inline

Creates a document from a source file.

Returns
The document.
Parameters
sourceFileSource file.
encodingEncoding.

Implements CSF.Zpt.IZptDocumentProvider.

IZptDocument CSF.Zpt.DocumentProviders.LegacyXmlZptDocumentProvider.CreateDocument ( Stream  sourceStream,
ISourceInfo  sourceInfo,
Encoding  encoding 
)
inline

Creates a document from a stream.

Returns
The document.
Parameters
sourceStreamSource stream.
sourceInfoSource info.
encodingEncoding.

Implements CSF.Zpt.IZptDocumentProvider.

RenderingMode CSF.Zpt.DocumentProviders.LegacyXmlZptDocumentProvider.GetRenderingMode ( )
inline

Gets the rendering mode for documents created by this provider.

Returns
The rendering mode.

Implements CSF.Zpt.IZptDocumentProvider.


The documentation for this class was generated from the following file: